Embedding (inline) SVG in content / markdown

Bumping this with a quick question.
It works great by using inside templates something like this:
{{ readFile “static/icons/home.svg” | safeHTML }}

Is there a way to add a class name to this? Something like

<svg class="svg-black">

Thanks!