feat: remove style tag when fetching url (#2913)
Co-authored-by: zhenyiwang <zhenyiwang@intl.zju.edu.cn>
This commit is contained in:
parent
3f01cc9c63
commit
2a2b919daf
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user