W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2008

[whatwg] Script, style and backwards compatibility

From: Kornel Lesinski <kornel@osiolki.net>
Date: Fri, 09 May 2008 01:08:42 +0100
Message-ID: <op.uau1cszc4suneb@aimac.local>
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
Received on Thursday, 8 May 2008 17:08:42 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:02 UTC