EU Parliament Monitor - API Documentation - v0.5.1
    Preparing search index...

    Function buildPropositionsContent

    • Build propositions article HTML content with localized strings.

      Security contract: proposalsHtml, 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 proposals list section

      • 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

      Returns string

      Full article HTML content string