note 45720 deleted from function.html-entity-decode by aidan

From: Date: Thu, 16 Sep 2004 12:01:58 +0000
Subject: note 45720 deleted from function.html-entity-decode by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76819@lists.php.net to get a copy of this message
Note Submitter: drm at melp dot nl ---- The suggestion to use another function in versions prior to 4.3.0 works fine, though for compatibility reasons you might want to consider declaring it as follows: if ( !function_exists ( 'html_entity_decode' ) ) { function html_entity_decode ($string) { $trans_tbl = get_html_translation_table(HTML_ENTITIES); $trans_tbl = array_flip($trans_tbl); return strtr($string, $trans_tbl); } } It saves you the trouble of renaming all references to html_entity_decode().

« previous php.notes (#76819) next »