Re:The Woes of Sanitizing SVGs
by hackeman300 on Monday April 27, 2026 @12:35PM
(#47923832)
Someone did this already and did call it tinyVG! https://tinyvg.tech/
Maybe I'm missing something as I am not a frontend developer, but when you embed SVGs in an img tag as part of a Phoenix LiveView or even just a static component, you no longer get the ability to dynamically change paths/fills/colors with events coming from the server. Even if it's as simple as having a shape that you want to fill with a brand/highlight color, which at least for me is a common use case.
Re:The Woes of Sanitizing SVGs
by ambicapter on Monday April 27, 2026 @12:32PM
(#47923786)
.rvg, Restricted Vector Graphics?
If someone formalizes this as a new format, please give it a new name! tvg tiny vector graphics? savg safe vector graphics?
And keep the scope as simple as possible so it actually ships! Don’t try implementing a binary format or something.