An interface for a file sanitizer that can sanitize files that can potentially contain dangerous elements. In contrast to a malware scanner, a sanitizer can remove potentially dangerous parts of the file and keep the rest usable. It never rejects files because of its contents, but simply removes dangerous parts. Due to the nature how sanitizers work, they typically always change something in the file, even if it is just removing whitespaces. That's why there is no reliable way to determine if a file was really dangerous or not and nothing is reported to the user.

Implements

Constructors

Properties

Methods

Constructors

Properties

name: string = 'SVG Sanitizer based on dompurify package'

The name of the scanner, e.g. SVG Sanitizer. Used in debug output

Methods