or throw in the needed number of closing tags
at the end of that specific message...

> -----Original Message-----
> From: Matthew Luchak [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 11, 2001 2:09 PM
> To: php php
> Subject: RE: [PHP] HTML tags in database fields
> 
> 
> 
> 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 
> Webmaster
> Kaydara Inc. 
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 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 (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]
> 

-- 
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