TIL: You can render svgs with embedded html in an img element

I happened across this tweet from @ryanlanciaux where he too had TIL'd that SVGs with HTML embedded inside a foreignObject tag will render when added as a src to an img element.

Here's a Codepen from Ryan with a simple example.

This apparently also works on the new Github profile repos, so could be used for some fun tricks.