SvgSanitizer

readonly class \TYPO3\CMS\Core\Resource\Security\SvgSanitizer

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

string

sanitizeFile()

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

Return values

DOMNode
On this page