EU Parliament Monitor — API Documentation - v0.8.24
    Preparing search index...
    • Build an HTML before/after comparison table for legislative changes.

      Renders a two-column table comparing the state of something before and after a legislative action. When the input arrays have different lengths, the table uses the longer length and renders missing cells as empty strings. Returns an empty string when either array is empty.

      Parameters

      • before: readonly string[]

        Array of "before" state descriptions for the first column.

      • after: readonly string[]

        Array of "after" state descriptions for the second column.

      • lang: LanguageCode

        Language code used for column headings.

      Returns string

      HTML string for the comparison <table>, or empty string when either array is empty.