Commit 2a2b919d by Zhenyi-Wang Committed by GitHub

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

Co-authored-by: zhenyiwang <zhenyiwang@intl.zju.edu.cn>
parent 3f01cc9c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment