note 2391 deleted from function.nl2br by aidan
| From: | aidan@php.net | Date: | Sun, 10 Oct 2004 10:40:45 +0000 |
| Subject: | note 2391 deleted from function.nl2br by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-78296@lists.php.net to get a copy of this message | ||
Note Submitter: davidbullock at tech-center dot com
----
If you use nl2br in conjunction with htmlspecialchars, you should process the string with nl2br
after htmlspecialchars to prevent htmlspecialchars from escaping your newly generated <br>
symbols.