Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Extract title and description from an HTML file.

      Per seo-metadata-contract.md ยง3.h, prefers the richest available description: og:description โ†’ <meta name="description"> โ†’ JSON-LD description, picking whichever is longest. The title is preferred from og:title (with any trailing โ€” Riksdagsmonitor brand suffix stripped) before falling back to <title>.

      Parameters

      • filePath: string

      Returns { title: string; description: string }