mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 20:37:48 +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);
|
||||
|
||||
// remove i element
|
||||
selectDom.find('i,script').remove();
|
||||
selectDom.find('i,script,style').remove();
|
||||
|
||||
// remove empty a element
|
||||
selectDom
|
||||
|
Reference in New Issue
Block a user