Re: Generate XHTML (HTML compatible) Code using DOMDocument

From: Date: Mon, 13 Apr 2009 07:01:48 +0000
Subject: Re: Generate XHTML (HTML compatible) Code using DOMDocument
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-291412@lists.php.net to get a copy of this message
On Sun, Apr 12, 2009 at 8:07 AM, Raymond Irving <xwisdom@yahoo.com> wrote: >    $html = > preg_replace('/<\!\[CDATA\[(.*)\]\]><\/script>/s','//<![CDATA[\1//]]></script>',$html); question - the output of this would be <script type="text/javascript"><![CDATA js code ... ]]></script> right? is the cdata truly necessary? I typically use XHTML 1.0 transitional and I don't have problems validating.

« previous php.general (#291412) next »