Anstatt
HTML-Code:
<span style="color: #FFFF00;">
einfach diesen "" ein \ voranstellen:
HTML-Code:
<span style=\"color: #FFFF00;\">
Dies ist eine Variante die in PHP verwendet wird. Ich bin mir nur nicht ganz sicher, ob dies bei JavaScript auch konform ist?!