feat: remove style tag when fetching url (#2913)
Some checks are pending
Deploy doc image by kubeconfig / build-fastgpt-docs-images (push) Waiting to run
Deploy doc image by kubeconfig / update-docs-image (push) Blocked by required conditions
Deploy doc image to vercel / deploy-production (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Waiting to run

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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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