Skip to content

Commit

Permalink
feat: remove style tag when fetching url (#2913)
Browse files Browse the repository at this point in the history
Co-authored-by: zhenyiwang <[email protected]>
  • Loading branch information
Zhenyi-Wang and zhenyiwang-intl-zju authored Oct 14, 2024
1 parent 3f01cc9 commit 2a2b919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/service/common/string/cheerio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a2b919

Please sign in to comment.