[Chameleon-dev] [Bug 1540] XMLObject.php uses htmlentities which
generates invalid XML
bugzilla-daemon at bugzilla.maptools.org
bugzilla-daemon at bugzilla.maptools.org
Mon Jul 31 10:19:46 EDT 2006
http://bugzilla.maptools.org/show_bug.cgi?id=1540
------- Additional Comments From bartvde at xs4all.nl 2006-07-31 10:19 -------
Okay, the code does need to change & into & so maybe just use a str_replace
for that:
$szReturn .= str_replace('&', '&', $this->value);
Or something like this:
function xmlentities($string) {
return str_replace ( array ( '&', '"', "'", '<', '>', '�' ), array ( '&'
, '"', ''' , '<' , '>', ''' ), $string );
}
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Please do NOT reply to this email, use the link above instead to
login to bugzilla and submit your comment. Any email reply to this
address will be lost.
More information about the Chameleon-dev
mailing list