Best way to have SVG in article

Hi,
I am currently writing a more advanced PhoronixBridge for rss-bridge. For some articles, benchmarks are displayed as SVG (see AMD Makes A Compelling Case For Budget-Friendly Ryzen Dedicated Servers - Phoronix). On the main website, those SVG are embedded using the <object type='image/svg+xml> tag, but these are removed by the sanitizer.
Neither <object> nor <svg> are in $allowed_elements.

It is possible to use <img src="path/to/svg">, but then all text in SVG is not selectable. Have some people found a better way?

I’m no expert, but I think the problem is that there’s no safe way to render svg inside tt-rss because svg can contain embedded JavaScript. <img> tags don’t run the JavaScript, so they’re safe.

Thanks, that confirmed my thoughts.

I went for <img> tag embed in <a>: [PhoronixBridge] support multipage and embed benchmarks by Glandos · Pull Request #2522 · RSS-Bridge/rss-bridge · GitHub