RE: [PHP] HTML tags in database fields
| From: | scott [gts] | Date: | Wed, 11 Jul 2001 18:26:15 +0000 |
| Subject: | RE: [PHP] HTML tags in database fields | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-57463@lists.php.net to get a copy of this message | ||
or throw in the needed number of closing tags
at the end of that specific message...
> -----Original Message-----
> From: Matthew Luchak [mailto:MLuchak@Kaydara.com]
> 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.
> mluchak@kaydara.com
>
>
>
>
>
> 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>