@geogirafe/lib-geoportal
    Preparing search index...

    Function sanitize

    • Use DOMPurify.sanitize to remove potentially harmful html/js code.

      Parameters

      • unsanitized: string

        the raw text to sanitize.

      • config: GirafeConfig

        Allowed tags and elements in a string.

      Returns string