Retain attribute dominant-baseline in DOMpurify sanitization
This commit is contained in:
parent
a6299d8334
commit
b472fb4f73
|
@ -545,7 +545,10 @@ const render = function (id, _txt, cb, container) {
|
||||||
</iframe>`;
|
</iframe>`;
|
||||||
} else {
|
} else {
|
||||||
if (cnf.securityLevel !== 'loose') {
|
if (cnf.securityLevel !== 'loose') {
|
||||||
svgCode = DOMPurify.sanitize(svgCode, { ADD_TAGS: ['foreignobject'] });
|
svgCode = DOMPurify.sanitize(svgCode, {
|
||||||
|
ADD_TAGS: ['foreignobject'],
|
||||||
|
ADD_ATTR: ['dominant-baseline'],
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue