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