Building off of Jared's answer, here are some helpful tags to include within the url:
Start
content:url("data:image/svg+xml;charset=utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'><text style='alignment-baseline:hanging;font-size:14px;font-family:Arial,sans-serif;fill:#008ef4;'>
New Line
<tspan x='-4' dy='14'> </tspan>
This is moving the cursor down 14px, and setting it to absolute -4 px x to account for the space (The space must be there or the tag will not render)
Bold
<tspan style='alignment-baseline:inherit;font-weight:bold;fill:#5b5b5b;'> Your Text Here </tspan>
Italic
<tspan style='alignment-baseline:inherit;font-style:italic;fill:#5b5b5b;'> Your Text Here </tspan>
End
</text></svg>");
Here's a Fiddle:
JSFiddle
And here is a google sheet I made to convert html into this SVG code: (Keep in mind this only works with <b>, <i>, <br>
tags)
Google Sheet