Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 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 &amp; &quot; &#039; &lt; &gt; 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 &amp; &quot; &#039; &lt; &gt; End Text
20
Text & &quot; &#039; < > End Text
21
Text & " ' < > End Text
22
Text & " ' < > End Text
23
Text & &quot; &#039; < > End Text