public function is_html($txt)
{
if( stripos($txt, '<html') === FALSE )
{
return FALSE;
}
else
{
return TRUE;
}
}
Si no detecta bien el html ¿Es que ese html no tiene la etiqueta <html>?