Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
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&#039;ll &quot;walk&quot; the &lt;b&gt;dog&lt;/b&gt; 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 &quot;walk&quot; the <b>dog</b> now