EU Parliament Monitor — API Documentation - v0.8.21
    Preparing search index...

    Function stripHtmlTags

    • Strip all HTML tags from a string, replacing each tag with a single space.

      Uses iterative index-based scanning instead of regex to avoid polynomial backtracking (CodeQL js/polynomial-redos).

      Parameters

      • html: string

        HTML string to strip

      Returns string

      The text content with tags replaced by spaces