| [ Index ] |
PHP Cross Reference of Web Application Component Toolkit |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @package WACT_UTIL 4 * @version $Id: html_entity_decode.php,v 1.2 2004/11/15 16:21:10 jeffmoore Exp $ 5 * Provides a PHP implementations of html_entity_decode(), 6 * only available since PHP 4.3.x, allowing older versions to use them. 7 */ 8 /** 9 * @see http://www.php.net/html_entity_decode 10 * @see http://wact.sourceforge.net/index.php/PHPCompatibility 11 * @todo Implement quote styles (?) 12 * @param string to encode HTML entities for 13 * @param string (default=NULL) - unused 14 * @return string contents of file 15 * @access public 16 */ 17 function html_entity_decode($str, $style=NULL) { 18 static $table; 19 if (!isset($table)) { 20 $table = array_flip(get_html_translation_table(HTML_ENTITIES)); 21 } 22 return strtr($str, $table); 23 } 24 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sun Nov 28 19:36:09 2004 | Cross-referenced by PHPXref 0.5 |