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

    Function visibleTextOf

    • Remove the regions a browser does not show (class="d-none"), then read the text.

      This is the difference between reading a result row and misreading it. The Parlamentsspiegel hides a "Neuestes Dokument: " span inside every row; that date belongs to the newest document of the Vorgang — usually the answer — while the visible date is the question's. Taking the text of the whole row therefore dates a Kleine Anfrage by its answer, and any date window built on it excludes exactly the records it was meant to include.

      Parameters

      • html: string

      Returns string