note 3995 deleted from function.htmlentities by alindeman

From: 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 &nbsp - this is easily corrected as follows: $trans = get_html_translation_table(HTML_ENTITIES); $trans[" "] = "&nbsp"; $html = strtr($original, $trans);

« previous php.notes (#29951) next »