You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug DOMPurify is used to sanitize all input text in playground, and by default it filters <use> elements out, so in both SVG and PDF outputs they are not visible. Also it leads to <use> elements not preserved in playground url.
One possible solution will be to use workaround provided by DOMPurify developers here, it will allow to safely use internal references. It can be placed here:
Sure, you can assign it to me! I was thinking that this issue in a way blocks comprehensive playground testing for #152 , so it would be nice to have it fixed first, and I can try it.
Describe the bug
DOMPurify
is used to sanitize all input text in playground, and by default it filters<use>
elements out, so in both SVG and PDF outputs they are not visible. Also it leads to<use>
elements not preserved in playground url.One possible solution will be to use workaround provided by
DOMPurify
developers here, it will allow to safely use internal references. It can be placed here:svg2pdf.js/playground/index.js
Line 28 in 929a2ba
To Reproduce
Check this code in playground:
Screenshot
Note: I changed height of input and output boxes in chrome devtools, so that it takes less space in screenshot.
Expected behavior
Example from above should result in two circles output (blue and orange), like in this codepen.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: