Hello,
With SVG icons becoming more popular and the recent addition of SVG icon support in Directory Opus, I’m interested in creating a button command that can run an SVG sanitizer script. The idea would be to scan or verify selected SVG icon files for potentially malicious code before using them in DO, just to stay on the safe side.
I’m looking for guidance from fellow DO users who are comfortable reading and understanding code on what such a sanitizer would need to do and how it could be implemented effectively.
Would something like this be sufficient?: Githhub: DOMPurify
...and if so, how could that be turned into button?
As a related idea, maybe having a built-in sanitizer that automatically checks SVGs when pasting or importing icons could also be useful, if that would make sense? ![]()