EU Parliament Monitor — API Documentation - v0.9.24
    Preparing search index...
    • Replace an H2 heading's text content by locating it via its id attribute. Uses indexOf-based search to avoid polynomial regex backtracking (CodeQL).

      Parameters

      • html: string

        Full HTML string

      • sectionId: string

        The id attribute value of the target <h2>

      • englishTitle: string

        The English title text to replace

      • localizedTitle: string

        The localized title to insert

      Returns string

      Updated HTML string