Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Rewrite every <span โ€ฆ data-stat-id="X">โ€ฆ</span> whose X has a baked value. Untouched ids (no CSV value, or no mapping) are left as placeholders so the runtime path on non-baked pages still has work to do โ€” i.e. this script is purely subtractive on baked pages.

      Parameters

      • html: string
      • lookup: Record<string, string>

      Returns { html: string; replaced: number }

      the rewritten HTML and the number of substitutions made.