RE: [PHP] Check for well formed html

From: Date: Sun, 05 Aug 2007 12:40:02 +0000
Subject: RE: [PHP] Check for well formed html
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-260211@lists.php.net to get a copy of this message
Tedd, Finally, I can give you an answer! :) You can use html tidy. I did this before the php tidy function was fully implemented, so I don't know the syntax for that. But using tidy from the command line you can set have it either correct errors (probably not what you want) or just have it return an error flag and log the errors. http://www.php.net/manual/en/ref.tidy.php http://tidy.sourceforge.net/ Kathleen -----Original Message----- From: tedd [mailto:tedd@sperling.com] Sent: Sunday, August 05, 2007 7:17 AM To: php-general@lists.php.net Subject: [PHP] Check for well formed html Hi gang: I have a client who wants to include html tags in his CMS. I know that I can limit what tags he can use, but how can I check if the text is well formed with the tags permitted before storing it in his CMS? Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#260211) next »