| 1 |
lars |
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
|