mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
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:
@@ -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('//')) {
|
||||
|
Reference in New Issue
Block a user