[whatwg] Script, style and backwards compatibility

Kornel Lesinski kornel at osiolki.net
Thu May 8 17:08:42 PDT 2008


On Fri, 09 May 2008 00:50:20 +0100, Samuel Santos <samaxes at gmail.com>  
wrote:

> In order to validate a page as valid HTML/XHTML you need to escape inline
> <script> when using characters like &.

You can use:

/*<![CDATA[*/ & /*]]>*/

It's compatible with both HTML and XHTML.

-- 
regards, Kornel Lesiński



More information about the whatwg mailing list