mwg API
    Preparing search index...

    Function sanitizeSvg

    • Refuse an SVG that is not proven inert, by name. The scan is deliberately conservative: it names what it refuses, and anything it cannot read as inert is an error rather than a silent pass. The source is returned unchanged once proven inert - sanitization here is a gate, not a rewrite; what a game authors is what a game gets.

      Parameters

      • source: string

      Returns string