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

Revision 20116, 631 bytes checked in by nanasess, 13 years ago (diff)
  • svn properties を再設定
  • 再設定用のスクリプト追加
  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
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.