RE: [PHP] detecting HTML tags
| From: | Taylor, Stewart | Date: | Tue, 15 May 2001 15:36:00 +0000 |
| Subject: | RE: [PHP] detecting HTML tags | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-52878@lists.php.net to get a copy of this message | ||
You could try something like
if (strlen($string) != strlen(strip_tags($string))
{
// maybe some html in string
}
-Stewart
-----Original Message-----
From: bill [mailto:bill@billtron.com]
Sent: 15 May 2001 15:40
To: php-general@lists.php.net
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: 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