note 39988 added to function.htmlentities

From: Date: Tue, 17 Feb 2004 19:32:31 +0000
Subject: note 39988 added to function.htmlentities
Groups: php.notes 
Request: Send a blank email to php-notes+get-65317@lists.php.net to get a copy of this message
Just a little comment on the note of sven (bitcetera.com): If you want to make this piece of code work on text that might contain several lines, you might want to add this line before the one of sven. $text_without_linebreak = str_replace("\n", "<br />", $text_with_linebreak); Like this, it worked great for me. ---- Manual Page -- http://www.php.net/manual/en/function.htmlentities.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39988 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39988&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39988&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65317) next »