Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.2

Bug #5450 Parser strip many tags
Submitted: 2005-09-19 05:42 UTC
From: jonysk at gmail dot com Assigned:
Status: Verified Package: XML_Beautifier
PHP Version: 5.0.3 OS: Debian Linux
Roadmaps: (Not assigned)    
Subscription  


 [2005-09-19 05:42 UTC] jonysk at gmail dot com
Description: ------------ This class is very useful for indent codes... But, unfortunately, many relevant tags are stripped, such as CDATA sections and DOCTYPE definition. This make the class useless for complex codes that have those features... Test script: --------------- A little example: $string = "<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE bookmark SYSTEM \"bookmark.dtd\"><bookmark><category><![CDATA[ this cdata will be stripped ]]></category></bookmark>"; $xml_b = new XML_Beautifier(); if (Error::isError($a = $xml_b->formatString($string))) { echo $a->getMessage(); } else { echo $a; } Expected result: ---------------- <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE bookmark SYSTEM "bookmark.dtd"> <bookmark> <category> <![CDATA[ this cdata will be stripped ]]> </category> </bookmark> Actual result: -------------- <bookmark> <category> this cdata will be stripped </category> </bookmark>

Comments

 [2006-10-01 19:47 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2008-09-22 19:47 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2008-09-22 20:33 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2009-08-21 09:30 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2011-09-28 01:24 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!