views:

56

answers:

0

Trying to use cdata to store css but chrome throws "Uncaught SyntaxError: Unexpected token <" for the first line below:

var default_style = <![CDATA[
    .TTContent table td.Mission img { max-height: 15px;}
]]>.toXMLString();

Does anyone knows why?

P.s. the css is much longer in reality

Many thanks,