MediaWiki REL1_35
MediaWiki\Hook\InternalParseBeforeSanitizeHook Interface Reference
Inheritance diagram for MediaWiki\Hook\InternalParseBeforeSanitizeHook:

Public Member Functions

 onInternalParseBeforeSanitize ( $parser, &$text, $stripState)
 This hook is called during Parser's internalParse method just before the parser removes unwanted/dangerous HTML tags and after nowiki/noinclude/ includeonly/onlyinclude and other processing.
 

Detailed Description

Deprecated:
since 1.35

Definition at line 12 of file InternalParseBeforeSanitizeHook.php.

Member Function Documentation

◆ onInternalParseBeforeSanitize()

MediaWiki\Hook\InternalParseBeforeSanitizeHook::onInternalParseBeforeSanitize (   $parser,
$text,
  $stripState 
)

This hook is called during Parser's internalParse method just before the parser removes unwanted/dangerous HTML tags and after nowiki/noinclude/ includeonly/onlyinclude and other processing.

Ideal for syntax-extensions after template/parser function execution which respect nowiki and HTML-comments.

Since
1.35
Parameters
Parser$parser
string&$textPartially parsed text
StripState$stripStateParser's internal StripState object
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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