RE: [PHP] HTML tags in database fields

From: Date: Wed, 11 Jul 2001 18:08:42 +0000
Subject: RE: [PHP] HTML tags in database fields
Groups: php.general 
Request: Send a blank email to php-general+get-57453@lists.php.net to get a copy of this message
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?

« previous php.general (#57453) next »