You could try something like
if (strlen($string) != strlen(strip_tags($string))
{
// maybe some html in string
}
-Stewart
-----Original Message-----
From: bill [mailto:[EMAIL PROTECTED]]
Sent: 15 May 2001 15:40
To: [EMAIL PROTECTED]
Subject: [PHP] detecting HTML tags
Is there a way to detect the presence of HTML tags?
I don't want them stripped out, I just want to know if a string contains
them.
I'm rolling my own mailing program and want it to detect the HTML if
present and send it appropriately.
kind regards,
bill hollett
--
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]