note 48166 deleted from function.htmlspecialchars by cmb

From: Date: Sun, 27 Oct 2019 09:19:21 +0000
Subject: note 48166 deleted from function.htmlspecialchars by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-212855@lists.php.net to get a copy of this message
Note Submitter: zolinak at zoli dot szathmari dot hu ---- A sample function, if anybody want to turn html entities (and special characters) back to simple. (eg: "&egrave;", "<" etc) function html2specialchars($str){ $trans_table = array_flip(get_html_translation_table(HTML_ENTITIES)); return strtr($str, $trans_table); }

« previous php.notes (#212855) next »