Member Junction
    Preparing search index...
    • Sanitize rendered SVG in place by removing the vectors that can run script. Call this on the container element after rendering if you need additional security.

      Removes <script> and <foreignObject> elements, every on* event-handler attribute (not a fixed list: any attribute whose name starts with on), javascript: / vbscript: / data: URLs on link and resource attributes, and <use> elements that reference an external document.

      Parameters

      • container: HTMLElement

        The DOM element containing rendered SVG

      Returns void