fix: remove xlink:href attributes from image elements in SVG content
This commit is contained in:
parent
610d8350af
commit
b7b9b1624d
1 changed files with 4 additions and 0 deletions
|
@ -469,6 +469,10 @@ async function processScrolls(svg: XMLDocument): Promise<VideoScrollDef[]> {
|
|||
|
||||
return Promise.all(
|
||||
Array.from(svg.getElementsByTagName("image"))
|
||||
.map((el) => {
|
||||
el.removeAttribute("xlink:href");
|
||||
return el;
|
||||
})
|
||||
.filter((el) =>
|
||||
Array.from(el.children).some((el) => el.tagName == "desc")
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue