sure.  Quick and dirty is to count all the '<whatever>' tags and compare
this to the number of '</whatever>' tags.  If the number doesn't match
up spit out a message saying "Sorry, I can't complete your request you
have $countopen - $countclose  $whatever tags not closed".  Also check
for the reverse;  closed but not opened tags...
Matthew Luchak 
Kaydara Inc. 

Hello. I wrote a comments application that allows the use of some HTML
tags for text formatting (<i><b>). I ran into a problem of users not
closing the tags (</i></b>), so when I display a page with all the
comments, if the user did not close the <b> tag then all the text in the
other comments is bold.

Is there a solution to this?

PHP General Mailing List (
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