geoview-core - v2.3.0
    Preparing search index...

    Function linkifyAndSanitizeHtml

    • Converts URLs in text to accessible external links and sanitizes the resulting HTML.

      Parameters

      • content: string

        Plain text content that may contain URLs

      • announcementText: string

        Screen reader announcement for links opening in a new tab

      • Optionaloptions: Opts

        Optional caller-specific link display options

      Returns string

      Sanitized HTML with URLs rendered as accessible links