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: readonlystring[]
Array of "before" state descriptions for the first column.
after: readonlystring[]
Array of "after" state descriptions for the second column.
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.