@drupflare/spool - v0.1.0
    Preparing search index...

    Function tagsOf

    • The start tags of html, read the way a browser reads them: an attribute name is anything up to whitespace, /, > or =, so a stray quote in a name (<a href="x" 13715"="">) is part of that name and does not open a value. A quote opens a value only after =. The text of a <script> or <style> is not scanned for tags. Comments are not skipped: a tag inside one adds tokens, which only keeps more rules.

      Parameters

      • html: string

      Returns Tag[]