MediaWiki  master
Parser\RemexRemoveTagHandler Class Reference

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

Inheritance diagram for Parser\RemexRemoveTagHandler:
Collaboration diagram for 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 15 of file RemexRemoveTagHandler.php.

Constructor & Destructor Documentation

◆ __construct()

Parser\RemexRemoveTagHandler::__construct ( TokenHandler  $nextHandler,
string  $source,
array  $tagData,
?callable  $attrCallback,
?array  $callbackArgs 
TokenHandler$nextHandlerHandler to relay accepted tokens.
string$sourceInput source string.
array$tagDataInformation 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 58 of file RemexRemoveTagHandler.php.

References $source.

Member Function Documentation

◆ comment()

Parser\RemexRemoveTagHandler::comment (   $text,

Definition at line 77 of file RemexRemoveTagHandler.php.

◆ endTag()

Parser\RemexRemoveTagHandler::endTag (   $name,

Definition at line 158 of file RemexRemoveTagHandler.php.

References $t.

◆ startTag()

Parser\RemexRemoveTagHandler::startTag (   $name,
Attributes  $attrs,

Definition at line 118 of file RemexRemoveTagHandler.php.

References $t, and Sanitizer\validateTagAttributes().

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