Pre-sanitized HTML for legislative procedures list section
Pre-sanitized HTML for recently adopted texts section (may be empty)
Structured pipeline data from MCP (null when unavailable);
pipelineData.procRowsHtml must be pre-sanitized HTML
Pre-sanitized HTML for tracked procedure status section (may be empty)
Localized string set for the target language
Language code (reserved for future use, default: 'en')
Full article HTML content string
Build propositions article HTML content with localized strings.
Security contract:
proposalsHtml,adoptedTextsHtml,procedureHtml, andpipelineData.procRowsHtmlMUST be pre-sanitized HTML — all external (MCP-sourced) values must have been passed throughescapeHTML()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.