Test media tag (#4796)

* feat: add html video tag convertion (#4784)

Co-authored-by: Zhenyi Wang <zhenyiwang@intl.zju.edu.cn>

* perf: media tag

---------

Co-authored-by: Zhenyi-Wang <47094597+Zhenyi-Wang@users.noreply.github.com>
Co-authored-by: Zhenyi Wang <zhenyiwang@intl.zju.edu.cn>
This commit is contained in:
Archer
2025-05-13 10:46:49 +08:00
committed by GitHub
parent bdb1221d94
commit 1470c37ef1
3 changed files with 20 additions and 1 deletions

View File

@@ -42,7 +42,7 @@ export const cheerioToHtml = ({
}
}
});
selectDom.find('img').each((i, el) => {
selectDom.find('img, video, source, audio, iframe').each((i, el) => {
const src = $(el).attr('src');
if (src) {
if (src.startsWith('//')) {