Keep svg viewBox attribute on custom sanitizer doesn't work
Hi! To display icons from a svg column on the resource list page I'm attempting to overwrite the HTML sanitizer to allow rendering SVG. The SVG is whitelisted as expected, but the allowed attributes do not seem to work. I just the following code-snippet for example:
Resulting in the following
dd()
output:
But I did specify on the sanitizer to allow the viewBox
attribute as well. This results in unpredictable sizes. Does anyone have a clue on how to fix this? Thanks in advance!1 Reply
Solution
Fixed this by implementing a
SvgColumn
ourselves