On Thu, 19 Apr 2001 14:36, [EMAIL PROTECTED] wrote:
> I'm having a problem with HTMLspecialchars and nl2br interfearing with
> each other. Obviously, I'm trying to stop malicous HTML/scripts from
> being entered into my guestbook, but I'm also trying to add spacing.
> nl2br adds <br>, but HTMLspecialchars tells it to not show that.
>
> Anyways, I'm sure there is a way around this. All help is welcome, so
> I'm eager for replys. Thank you very, very much!
>
> -Owen
Perhaps if you do the nl2br after rather than before htmlspecialchars? Or
just use nl2br when you actually display the text, rather than trying to
put the <BR> in your database.
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA
--
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]