@maschinenlesbar.org/openka-cli
    Preparing search index...

    Function elementContents

    • The content of each <tag …>…</tag> in document order, as a lazy <tag\b[^>]*>([\s\S]*?)</tag\s*> reads it: from an opening tag accept takes (given the whole tag) to the first </tag> after it, the search going on after that closer. Linear: the opening tag stops at an unquoted <, and once one element has no closer, no later one has, so the scan ends there rather than searching again from every opener to the end (security audit 2026-10-27).

      Parameters

      • html: string
      • tag: string
      • Optionalaccept: (openingTag: string) => boolean

      Returns Generator<string>