Re: [PHP] HTML Character Parsing

2002-04-11 Thread Justin French
This is pretty basic, and I recommend looking at all the string functions. Basically, you want to use strip_tags() to get rid of the html (with optionally allowing SOME tags to be passed thru. Then use nl2br() to convert /n's (the only type of newline you're likely to receive via a web form) to

[PHP] HTML Character Parsing

2002-04-11 Thread David
Hi all, I have a textarea which will containg info from the user. This then needs to be parsed through something like htmlspecialchars() or htmlentities(). The issue is that my system really needs to do the following: 1. Accept the info 2. Check if there is any HTML syntax (, etc) 3. If YES: re