MediaWiki  master
MediaWiki\Hook\InternalParseBeforeSanitizeHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

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. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "InternalParseBeforeSanitize" to register handlers implementing this interface.

Deprecated:
since 1.35

Definition at line 15 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: