note 20244 modified in function.htmlentities by irc-html

From: Date: Sun, 21 Apr 2002 03:25:26 +0000
Subject: note 20244 modified in function.htmlentities by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-29625@lists.php.net to get a copy of this message
The function below can be used to get the reverse of functions like htmlentities (i.e. to convert back from things like & to &): function un_htmlentities ($string) { $trans_tbl = get_html_translation_table (HTML_ENTITIES); $trans_tbl = array_flip($trans_tbl); return strtr($string, $trans_tbl); } --was-- The function below can be used to get the reverse of functions like htmlentities (i.e. to convert back from things like & to &): function un_htmlentities ($string) { $trans_tbl = get_html_translation_table (HTML_ENTITIES); $trans_tbl = array_flip($trans_tbl); return strtr($string, $trans); } http://www.php.net/manual/en/function.htmlentities.php

« previous php.notes (#29625) next »