Source for file html_entity_decode.php
Documentation is available at html_entity_decode.php
// $Id: html_entity_decode.php,v 1.11 2007/04/17 10:09:56 arpad Exp $
* Replace html_entity_decode()
* @license LGPL - http://www.gnu.org/licenses/lgpl.html
* @copyright 2004-2007 Aidan Lister <aidan@php.net>, Arpad Ray <arpad@php.net>
* @link http://php.net/function.html_entity_decode
* @author David Irvine <dave@codexweb.co.za>
* @author Aidan Lister <aidan@php.net>
* @version $Revision: 1.11 $
* @internal Setting the charset will not do anything
* @require PHP 4.0.0 (user_error)
user_error('html_entity_decode() expects parameter 2 to be long, ' .
gettype($quote_style) . ' given', E_USER_WARNING );
// Add single quote to translation table;
$trans_tbl['''] = '\'';
// Not translating double quotes
// Remove double quote from translation table
unset ($trans_tbl['"']);
return strtr($string, $trans_tbl);
Documentation generated on Mon, 11 Mar 2019 15:26:35 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|