LeaVerou / dabblet

An interactive CSS playground
http://dabblet.com
817 stars 147 forks source link

Inline CSS previewers don't handle HTML entities/escapes in style attributes #252

Open granthusbands opened 9 years ago

granthusbands commented 9 years ago

http://dabblet.com/gist/45356b16afbb9993619d contains an example. The important part is: <div style="background: url('http://dabblet.com/img/noise.png');)"> </div> <div style="background: url(&quot;http://dabblet.com/img/noise.png&quot;)"> </div> <div style="background-color: hsl(220,60&#37;,80%)"> </div> The first one is trivially handled correctly. The other two fail, due to the &quot; and &#37;.

javatlacati commented 9 years ago

Since it depends on the prism project you can test the script at http://prismjs.com/test.html and report any issue on the highlighting to the Prism git