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 shilin66
parent 2181d620c0
commit b0a364c31b

View File

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