#30455 [Opn->Csd]: Livedocs strips HTML comments from source
| From: | iliaa@php.net | Date: | Wed, 09 Feb 2005 19:47:45 +0000 |
| Subject: | #30455 [Opn->Csd]: Livedocs strips HTML comments from source | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969366470@lists.php.net to get a copy of this message | ||
ID: 30455
Updated by: iliaa@php.net
Reported By: aidan@php.net
-Status: Open
+Status: Closed
Bug Type: Livedocs problem
PHP Version: Irrelevant
Assigned To: ilia
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-11-13 19:05:25] smileaf at ryalth dot com
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
------------------------------------------------------------------------
[2004-10-16 09:11:01] nlopess@php.net
Yes, those lines can be removed safely.
------------------------------------------------------------------------
[2004-10-16 07:02:34] aidan@php.net
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