cleanText comes back as <svg viewbox="0 0 209.621 248.055"> instead of <svg viewBox="0 0 209.621 248.055">
I cannot run a specific query that will convert viewbox back to viewBox because it is not the only instance that I need. I have more whitelisted fields and mapping all of them is not feasible.
Is there a way to preserve the case of whitelisted attributes when using
filterXSS
?Given this code:
cleanText
comes back as<svg viewbox="0 0 209.621 248.055">
instead of<svg viewBox="0 0 209.621 248.055">
I cannot run a specific query that will convert
viewbox
back toviewBox
because it is not the only instance that I need. I have more whitelisted fields and mapping all of them is not feasible.