note 76732 deleted from function.htmlspecialchars-decode by sobak

From: Date: Thu, 01 Dec 2016 17:37:47 +0000
Subject: note 76732 deleted from function.htmlspecialchars-decode by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207902@lists.php.net to get a copy of this message
Note Submitter: Wout ---- The following replacement for PHP 4 is a little more complete, as the quote_style is taken into account as well: if (!function_exists("htmlspecialchars_decode")) { function htmlspecialchars_decode($string, $quote_style = ENT_COMPAT) { return strtr($string, array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style))); } }

« previous php.notes (#207902) next »