[PEAR-BUG] Bug #18674 [Com]: Use of htmlentities instead of htmlspecialchars

[email protected] ("[email protected]")
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=18674&edit=1

 ID:               18674
 Comment by:       [email protected]
 Reported By:      goetas at lignano dot it
 Summary:          Use of htmlentities instead of htmlspecialchars
 Status:           Open
 Type:             Bug
 Package:          PHP_UML
 Package Version:  1.5.5
 PHP Version:      5.3.6
 Roadmap Versions: 
 New Comment:

The PHP_UML_Output_Xmi_BuilderImpl1 has the same problem too.


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

[2011-07-20 09:25:31] goetas

Description:
------------
At line 249 of PHP_UML_Output_Xmi_BuilderImpl2 you use htmlentities
instead of htmlspecialchars.
This generates in some case "HTML" entities that are not supported in
XMI specification.
If you want to load the generated XMI string using DOMDocument::load()
it fails.

My suggest is to use htmlspecialchars because it converts only XML
entities laving untouched other characters

Expected result:
----------------
To be able to load XMI string using DOMDocument::load()

Actual result:
--------------
Unable to load XMI string using DOMDocument::load()

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


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18674&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.