Revision 20119,
631 bytes
checked in by nanasess, 13 years ago
(diff) |
module 以下は svn:keywords を除外
|
-
Property svn:eol-style set to
LF
|
Line | |
---|
1 | --TEST-- |
---|
2 | Function -- html_entity_decode |
---|
3 | --SKIPIF-- |
---|
4 | <?php if (function_exists('html_entity_decode')) { echo 'skip'; } ?> |
---|
5 | --FILE-- |
---|
6 | <?php |
---|
7 | require_once 'PHP/Compat.php'; |
---|
8 | PHP_Compat::loadFunction('html_entity_decode'); |
---|
9 | |
---|
10 | $string = "I'll "walk" the <b>dog</b> now"; |
---|
11 | echo html_entity_decode($string), "\n"; |
---|
12 | echo html_entity_decode($string, ENT_COMPAT), "\n"; |
---|
13 | echo html_entity_decode($string, ENT_QUOTES), "\n"; |
---|
14 | echo html_entity_decode($string, ENT_NOQUOTES), "\n"; |
---|
15 | ?> |
---|
16 | --EXPECT-- |
---|
17 | I'll "walk" the <b>dog</b> now |
---|
18 | I'll "walk" the <b>dog</b> now |
---|
19 | I'll "walk" the <b>dog</b> now |
---|
20 | I'll "walk" the <b>dog</b> now |
---|
Note: See
TracBrowser
for help on using the repository browser.