--TEST-- Bug #25707 (html_entity_decode over-decodes &lt;) --FILE-- <?php var_dump(html_entity_decode("&lt;", ENT_COMPAT, 'ISO-8859-1')); var_dump(html_entity_decode("&#38;", ENT_COMPAT, 'ISO-8859-1')); var_dump(html_entity_decode("&#38;lt;", ENT_COMPAT, 'ISO-8859-1')); ?> --EXPECT-- string(4) "<" string(5) "&" string(8) "&lt;"