note 8844 added to htmlentities

From: Date: Sun, 01 Oct 2000 04:14:28 +0000
Subject: note 8844 added to htmlentities
Groups: php.notes 
Request: Send a blank email to php-notes+get-5721@lists.php.net to get a copy of this message
If you want to present text in a forum this is a great string that takes care of both htmlentities nl2br and spaces: echo nl2br(ereg_replace(" ", "  ", htmlentities($stringoftext))); Cheers. http://www.php.net/manual/function.htmlentities.php

« previous php.notes (#5721) next »