Skip to content

Instantly share code, notes, and snippets.

@evan-brass
Created December 25, 2020 22:47
Show Gist options
  • Save evan-brass/d92df5af08c4de7b7b6d39b7f7b9aaee to your computer and use it in GitHub Desktop.
Save evan-brass/d92df5af08c4de7b7b6d39b7f7b9aaee to your computer and use it in GitHub Desktop.

Revisions

  1. evan-brass created this gist Dec 25, 2020.
    15 changes: 15 additions & 0 deletions regex-html-6a.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    const VOID_TAGS = [
    // List from: https://riptutorial.com/html/example/4736/void-elements
    'area',
    'base',
    'br',
    'hr',
    'img',
    'input',
    'link',
    'meta',
    'param',
    'command',
    'keygen',
    'source'
    ];