Re: parsing HTML text
| From: | Austin Marshall | Date: | Tue, 07 May 2002 18:09:09 +0000 |
| Subject: | Re: parsing HTML text | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96469@lists.php.net to get a copy of this message | ||
Lee Doolan wrote:
I have written form screen which has as one of it's elements a <textarea> box in which a user can input some text --like a simple bio-- which will appear on another screen. I'd like to edit check this text. It would be a good idea to make sure that it has, among other things, no <form> elements, say, or to make sure that if a <font> tag occurs, that a matching </font> tag is present. Is anyone aware of a class or a package which I can use to parse this text and do this kind of validation? tia -leestrip_tags() is your friend, http://www.php.net/strip_tags