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

    Function buildRelatedArticlesHTML

    • Generate an HTML <section> listing related articles, cross-references, and emerging trends for embedding in a generated article.

      Produces accessible markup with aria-label and rel="noopener noreferrer". UI strings and date formatting are localised based on the lang parameter.

      Parameters

      • relatedArticles: ArticleIndexEntry[]

        Articles related to the current article

      • crossRefs: ArticleCrossReference[]

        Cross-references from the current article

      • trends: TrendDetection[]

        Trends relevant to the current article

      • Optionallang: string

        Language code for localisation (defaults to 'en')

      Returns string

      HTML string for the "Related Analysis" section, or empty string if nothing to show