Sanitize SVG inside regular HTML #555
sonnatager
started this conversation in
General
Replies: 2 comments
-
My suggestion is to not add the additional tags and attributes to |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ah yes, i didn't thought about that possibility :-) I will try that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys,
I have following piece of HTML:
I have now added this attributes and this tags to the allowedAttributes and allowedTags array of the sanitizer.
My question is, how can i configure the sanitizer to use the added allowed svg tags and attributs just for the svg element in the html. The html "outside" the svg (e.g. the tag) should just use the default allowed tags and attributes.
Beta Was this translation helpful? Give feedback.
All reactions