feat: remove style tag when fetching url (#2913)

Co-authored-by: zhenyiwang <zhenyiwang@intl.zju.edu.cn>
This commit is contained in:
Zhenyi-Wang
2024-10-14 14:37:29 +08:00
committed by GitHub
parent 3f01cc9c63
commit 2a2b919daf

View File

@@ -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