Some entities (specifically ', but likely others[1]) are not decoded by SimpleHtmlSaxParser::decodeHtml(). I've attached a patch that should fix the bug, and should work back to PHP 4.3.0 (not quite enough to match Simpletest's support). The patch also updates a test, in order to allow for verification of the existence and correction of the bug.
[1] Heavy discussion about decodeHtml's prior implementation, and better (compatible) ways to do it, can be found in the user comments at:
<http://www.php.net/manual/en/function.htmlentities.php>
Perrick Penet
Web tester
None
Public
| Filename | Description | Download |
|---|---|---|
| decode_numerics_bugfix.diff | Decode more entities by using html_entity_decode | Download |