Hi Bill

<?

if (preg_match("/([\<])([^\>]{1,})*([\>])/i", $string)) {
    echo "Houston, we have a problem.";
}

?>

James.

"bill" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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]

Reply via email to