note 20850 added to function.htmlentities

From: Date: Thu, 18 Apr 2002 16:15:43 +0000
Subject: note 20850 added to function.htmlentities
Groups: php.notes 
Request: Send a blank email to php-notes+get-29528@lists.php.net to get a copy of this message
The html entity for a space is a space! It is only when there are 2 or more spaces next to each other that there is a problem. I just use: $html_text = ereg_replace(" ","  ",htmlentities($text)); That’s 2 spaces replaced by a space and   Might be slower but the html source produced is far prettier and smaller. -- http://www.php.net/manual/en/function.htmlentities.php http://master.php.net/manage/user-notes.php?action=edit+20850 http://master.php.net/manage/user-notes.php?action=delete+20850 http://master.php.net/manage/user-notes.php?action=reject+20850

« previous php.notes (#29528) next »