note 5965 deleted from function.htmlentities by jimw

From: Date: Mon, 17 Dec 2001 22:27:08 +0000
Subject: note 5965 deleted from function.htmlentities by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23010@lists.php.net to get a copy of this message
In reply to a previous statement, wouldn't the following code replace all spaces with   :$trans = get_html_translation_table(HTML_ENTITIES); $trans[" "] = " "; $html = strtr($original, $trans); <p> To adjust for this problem wouldnt the correct solution be to take two spaces and convert them to a normal space and an   tag. Just a thought. I could be wrong but I could be right. It makes a big difference :)

« previous php.notes (#23010) next »