note 3995 deleted from function.htmlentities by alindeman
| From: | alindeman@php.net | Date: | Sun, 28 Apr 2002 15:00:28 +0000 |
| Subject: | note 3995 deleted from function.htmlentities by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-29951@lists.php.net to get a copy of this message | ||
The one thing that this function seems to be missing is changing spaces to   - this is
easily corrected as follows:
$trans = get_html_translation_table(HTML_ENTITIES);
$trans[" "] = " ";
$html = strtr($original, $trans);