mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 16:33:49 +00:00
feat: remove style tag when fetching url (#2913)
Co-authored-by: zhenyiwang <zhenyiwang@intl.zju.edu.cn>
This commit is contained in:
@@ -20,7 +20,7 @@ export const cheerioToHtml = ({
|
|||||||
const selectDom = $(usedSelector);
|
const selectDom = $(usedSelector);
|
||||||
|
|
||||||
// remove i element
|
// remove i element
|
||||||
selectDom.find('i,script').remove();
|
selectDom.find('i,script,style').remove();
|
||||||
|
|
||||||
// remove empty a element
|
// remove empty a element
|
||||||
selectDom
|
selectDom
|
||||||
|
Reference in New Issue
Block a user