RawNodeEscapeTransformer
in package
implements
NodeTransformer
FinalYes
Table of Contents
Interfaces
Properties
- $escapeRawNodes : bool
- $htmlSanitizer : HtmlSanitizer
- $logger : LoggerInterface
Methods
- __construct() : mixed
- enterNode() : T
- getPriority() : int
- The higher the priority the earlier the NodeTransformer is executed.
- leaveNode() : T|null
- supports() : bool
Properties
$escapeRawNodes read-only
private
bool
$escapeRawNodes
$htmlSanitizer
private
HtmlSanitizer
$htmlSanitizer
$logger read-only
private
LoggerInterface
$logger
Methods
__construct()
public
__construct(bool $escapeRawNodes, LoggerInterface $logger, HtmlSanitizerConfig $htmlSanitizerConfig) : mixed
Parameters
- $escapeRawNodes : bool
- $logger : LoggerInterface
- $htmlSanitizerConfig : HtmlSanitizerConfig
enterNode()
public
enterNode(Node $node, CompilerContext $compilerContext) : T
Parameters
- $node : Node
- $compilerContext : CompilerContext
Return values
TgetPriority()
The higher the priority the earlier the NodeTransformer is executed.
public
getPriority() : int
Return values
intleaveNode()
public
leaveNode(Node $node, CompilerContext $compilerContext) : T|null
Parameters
- $node : Node
- $compilerContext : CompilerContext
Return values
T|nullsupports()
public
supports(Node $node) : bool
Parameters
- $node : Node