MediaWiki master
MediaWiki\Parser\RemexRemoveTagHandler Class Reference

Helper class for Sanitizer::removeSomeTags(). More...

Inherits RelayTokenHandler.

Collaboration diagram for MediaWiki\Parser\RemexRemoveTagHandler:

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)
 

Detailed Description

Helper class for Sanitizer::removeSomeTags().

Access: internal

Definition at line 14 of file RemexRemoveTagHandler.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Parser\RemexRemoveTagHandler::__construct ( TokenHandler $nextHandler,
string $source,
array $tagData,
?callable $attrCallback,
?array $callbackArgs )
Parameters
TokenHandler$nextHandlerHandler to relay accepted tokens.
string$sourceInput source string.
array$tagDataInformation about allowed/rejected tags.
?callable$attrCallbackAttribute handler callback. The full signature is ?callable(Attributes,mixed...):Attributes
?array$callbackArgsOptional arguments to attribute handler.

Definition at line 57 of file RemexRemoveTagHandler.php.

References $source.

Member Function Documentation

◆ comment()

MediaWiki\Parser\RemexRemoveTagHandler::comment ( $text,
$sourceStart,
$sourceLength )

Definition at line 76 of file RemexRemoveTagHandler.php.

◆ endTag()

MediaWiki\Parser\RemexRemoveTagHandler::endTag ( $name,
$sourceStart,
$sourceLength )

Definition at line 157 of file RemexRemoveTagHandler.php.

◆ startTag()

MediaWiki\Parser\RemexRemoveTagHandler::startTag ( $name,
Attributes $attrs,
$selfClose,
$sourceStart,
$sourceLength )

The documentation for this class was generated from the following file: