Re: HTMLSpecialchars
| From: | Christian Reiniger | Date: | Thu, 19 Apr 2001 09:48:14 +0000 |
| Subject: | Re: HTMLSpecialchars | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49343@lists.php.net to get a copy of this message | ||
On Thursday 19 April 2001 07:11, you wrote:
> > I'm having a problem with HTMLspecialchars and nl2br interfearing
> // Convert < to <, etc
> $output = htmlentities($content);
Little note on the side: htmlentities () is usually better then
htmlspecialchars ().
(1) It has a shorter name *g* and (2) it really takes care of *all* HTML
specialities (e.g. umlauts)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
/* you are not expected to understand this */
- from the UNIX V6 kernel source