SvgSanitizer
Read onlyYes
Table of Contents
Methods
- sanitizeContent() : string
- sanitizeFile() : void
- sanitizeNode() : DOMNode
Methods
sanitizeContent()
public
sanitizeContent(string $svg[, bool $minify = false ][, bool $removeLinks = false ]) : string
Parameters
- $svg : string
- $minify : bool = false
- $removeLinks : bool = false
Return values
stringsanitizeFile()
public
sanitizeFile(string $sourcePath[, string|null $targetPath = null ]) : void
Parameters
- $sourcePath : string
- $targetPath : string|null = null
sanitizeNode()
public
sanitizeNode(DOMNode $node) : DOMNode
Parameters
- $node : DOMNode