ID: 50118 Updated by: scott...@php.net Reported By: floder at gmail dot com -Status: Open +Status: Bogus Bug Type: DOM XML related Operating System: all PHP Version: 5.3.1RC3 New Comment:
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Duplicate of bug #50106 Previous Comments: ------------------------------------------------------------------------ [2009-11-09 08:32:34] floder at gmail dot com Description: ------------ Problem with htmlspecialchars PHP function. In HTML5 are allowed only numeric entities. In XML parsing mode browser interrupts errors. Reproduce code: --------------- <=htmlspecialchars('&')> Expected result: ---------------- ¡'&' (ampersand) becomes '&' ¡'"' (double quote) becomes '"' ¡''' (single quote) becomes ''' ¡'<' (less than) becomes '<' ¡'>' (greater than) becomes '>' Actual result: -------------- ¡'&' (ampersand) becomes '&' ¡'"' (double quote) becomes '"' ¡''' (single quote) becomes ''' ¡'<' (less than) becomes '<' ¡'>' (greater than) becomes '>' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50118&edit=1