Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jeremypage/b685058025e82a13e07c46e99837d890 to your computer and use it in GitHub Desktop.

Select an option

Save jeremypage/b685058025e82a13e07c46e99837d890 to your computer and use it in GitHub Desktop.
VS Code: Strip attributes from HTML tags
# Couldn't figure out how to do /s or get VS Code to search over newlines so came up with this convoluted mess '[\S\s]*?\n?'
Search for: <(table|tr|td|p|div|span)[\S\s]*?\n?>
Replace with: <$1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment