On Thursday 19 April 2001 07:11, you wrote:

> > I'm having a problem with HTMLspecialchars and nl2br interfearing

> // Convert < to &lt;, 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to