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

    Function stripHidden

    • Drop d-none elements, including their contents, without a DOM.

      Nesting has to be counted rather than matched with a lazy regex: the hidden block in a result row contains further spans, and stopping at the first </span> would leave the part that matters — the date — behind, which is exactly the defect this function exists to prevent.

      Parameters

      • html: string

      Returns string