Skip to content

Instantly share code, notes, and snippets.

@aarondai
Created July 16, 2014 08:15
Show Gist options
  • Save aarondai/102599c21dc661e7ecb9 to your computer and use it in GitHub Desktop.
Save aarondai/102599c21dc661e7ecb9 to your computer and use it in GitHub Desktop.
JavaScript: Detect HTML Tag in String
/<[a-z][\s\S]*>/i.test()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment