On Sun, Apr 12, 2009 at 8:07 AM, Raymond Irving <xwisdom@xxxxxxxxx> 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php