EU Parliament Monitor — API Documentation - v0.9.24
    Preparing search index...
    • Apply SEO meta tag replacements to a complete article HTML document.

      Exported for the regression test in test/unit/news-indexes-jsonld-description-regex.test.js, which locks in the JSON-LD description regex against the duplicate-tail bug (the legacy "description":"[^"]*" pattern terminated at the first JSON-escaped quote \" and left the previous description's tail in place, accumulating duplicates on every prebuild run).

      Parameters

      • html: string

        Existing article HTML

      • description: string

        Backfilled meta description

      • keywords: readonly string[]

        Backfilled keyword list

      Returns string

      Updated HTML