MediaWiki master
|
Helper class for Sanitizer::removeSomeTags(). More...
Inherits RelayTokenHandler.
Public Member Functions | |
__construct (TokenHandler $nextHandler, string $source, array $tagData, ?callable $attrCallback, ?array $callbackArgs) | |
comment ( $text, $sourceStart, $sourceLength) | |
endTag ( $name, $sourceStart, $sourceLength) | |
startTag ( $name, Attributes $attrs, $selfClose, $sourceStart, $sourceLength) | |
Helper class for Sanitizer::removeSomeTags().
Definition at line 14 of file RemexRemoveTagHandler.php.
MediaWiki\Parser\RemexRemoveTagHandler::__construct | ( | TokenHandler | $nextHandler, |
string | $source, | ||
array | $tagData, | ||
?callable | $attrCallback, | ||
?array | $callbackArgs ) |
TokenHandler | $nextHandler | Handler to relay accepted tokens. |
string | $source | Input source string. |
array | $tagData | Information about allowed/rejected tags. |
?callable | $attrCallback | Attribute handler callback. The full signature is ?callable(Attributes,mixed...):Attributes |
?array | $callbackArgs | Optional arguments to attribute handler. |
Definition at line 57 of file RemexRemoveTagHandler.php.
References $source.
MediaWiki\Parser\RemexRemoveTagHandler::comment | ( | $text, | |
$sourceStart, | |||
$sourceLength ) |
Definition at line 76 of file RemexRemoveTagHandler.php.
MediaWiki\Parser\RemexRemoveTagHandler::endTag | ( | $name, | |
$sourceStart, | |||
$sourceLength ) |
Definition at line 157 of file RemexRemoveTagHandler.php.
MediaWiki\Parser\RemexRemoveTagHandler::startTag | ( | $name, | |
Attributes | $attrs, | ||
$selfClose, | |||
$sourceStart, | |||
$sourceLength ) |
Definition at line 117 of file RemexRemoveTagHandler.php.
References MediaWiki\Parser\Sanitizer\validateTagAttributes().