You can actually embed HTML inside an SVG using the foreignObject element.
I’ve done some cool things with the built-in SMIL animation too. You can control it with JavaScript and CSS… Watch out for the filters though — they can be pretty heavy compute-wise.
I mean, it is just plain text inside some XML tags. It'd be weirder if they treated it like text in a photo