blob: 4954fb1ae5aecf25e0fb1f3b3f50a9f6e00ce504 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--TEST--
Bug #25707 (html_entity_decode over-decodes <)
--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;"
|