source: branches/version-2_5-dev/data/module/Compat/tests/function/html_entity_decode.phpt @ 20119

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--
2Function -- html_entity_decode
3--SKIPIF--
4<?php if (function_exists('html_entity_decode')) { echo 'skip'; } ?>
5--FILE--
6<?php
7require_once 'PHP/Compat.php';
8PHP_Compat::loadFunction('html_entity_decode');
9
10$string = "I&#039;ll &quot;walk&quot; the &lt;b&gt;dog&lt;/b&gt; now";
11echo html_entity_decode($string), "\n";
12echo html_entity_decode($string, ENT_COMPAT), "\n";
13echo html_entity_decode($string, ENT_QUOTES), "\n";
14echo html_entity_decode($string, ENT_NOQUOTES), "\n";
15?>
16--EXPECT--
17I'll "walk" the <b>dog</b> now
18I'll "walk" the <b>dog</b> now
19I'll "walk" the <b>dog</b> now
20I'll &quot;walk&quot; the <b>dog</b> now
Note: See TracBrowser for help on using the repository browser.