Skip to content

Instantly share code, notes, and snippets.

@ronan-gloo
Created August 6, 2012 16:54
Show Gist options
  • Save ronan-gloo/3276553 to your computer and use it in GitHub Desktop.
Save ronan-gloo/3276553 to your computer and use it in GitHub Desktop.
is_string ?
public static function is_html($string)
{
return strlen(strip_tags($string)) < strlen($string);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment