EU Parliament Monitor — API Documentation - v0.8.30
    Preparing search index...
    • Build propositions article HTML content with localized strings.

      Security contract: proposalsHtml, adoptedTextsHtml, procedureHtml, and pipelineData.procRowsHtml MUST be pre-sanitized HTML — all external (MCP-sourced) values must have been passed through escapeHTML() before being interpolated into these strings. The fetch helpers (fetchProposalsFromMCP, fetchPipelineFromMCP, fetchProcedureStatusFromMCP) fulfil this contract; callers must do the same if they construct these arguments independently.

      Parameters

      • proposalsHtml: string

        Pre-sanitized HTML for legislative procedures list section

      • adoptedTextsHtml: string

        Pre-sanitized HTML for recently adopted texts section (may be empty)

      • pipelineData: PipelineData | null

        Structured pipeline data from MCP (null when unavailable); pipelineData.procRowsHtml must be pre-sanitized HTML

      • procedureHtml: string

        Pre-sanitized HTML for tracked procedure status section (may be empty)

      • strings: PropositionsStrings

        Localized string set for the target language

      • _lang: string = 'en'

        Language code (reserved for future use, default: 'en')

      Returns string

      Full article HTML content string