ID:          30455
 Comment by:  smileaf at ryalth dot com
 Reported By: [EMAIL PROTECTED]
 Status:      Open
 Bug Type:    Livedocs problem
 PHP Version: Irrelevant
 New Comment:

stripping comments can be a problem if your wanting to use the w3c
recommendation to comment script data out for older browsers. 
I'm experiencing this with php 5.0.2 using xsltprocessor


Previous Comments:
------------------------------------------------------------------------

[2004-10-16 09:11:01] [EMAIL PROTECTED]

Yes, those lines can be removed safely.

------------------------------------------------------------------------

[2004-10-16 07:02:34] [EMAIL PROTECTED]

Description:
------------
Livedocs strips comments from files, which is a problem if you want to
add comments to HTML blocks in CDATA.

This is the offending line:

livedocs_funcs.php/213

/* strip comments */
$data = preg_replace('@<!--\s+.*\s-->@Usm', '', $data);

I'm not sure why this needs to be done, but perhaps it can be removed
or improved.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=30455&edit=1

Reply via email to