Manual:Hooks/InternalParseBeforeSanitize

Category:MediaWiki hooks#InternalParseBeforeSanitize Category:Hooks added in MediaWiki 1.20.0#InternalParseBeforeSanitize Category:MediaWiki deprecated or obsolete features#InternalParseBeforeSanitize Category:Hooks removed in MediaWiki 1.40.0#InternalParseBeforeSanitize Category:Hooks deprecated in MediaWiki 1.35.0#InternalParseBeforeSanitize
InternalParseBeforeSanitize
Available from version 1.20.0
Removed in version 1.40.0 (Gerrit change 860937)Category:Removed hooks#InternalParseBeforeSanitize
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 processings.
Define function:
public static function onInternalParseBeforeSanitize( Parser &$parser, &$text, StripState &$stripState ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"InternalParseBeforeSanitize": "MediaWiki\\Extension\\MyExtension\\Hooks::onInternalParseBeforeSanitize"
	}
}
Called from: File(s): parser/Parser.phpCategory:MediaWiki hooks included in Parser.php#InternalParseBeforeSanitize
Interface: InternalParseBeforeSanitizeHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:InternalParseBeforeSanitize extensions.

This hook wass ideal for syntax-extensions after template/parser function execution which respect nowiki and HTML-comments.

Category:Hooks added in MediaWiki 1.20.0 Category:Hooks deprecated in MediaWiki 1.35.0 Category:Hooks removed in MediaWiki 1.40.0 Category:MediaWiki deprecated or obsolete features Category:MediaWiki hooks Category:MediaWiki hooks included in Parser.php Category:Removed hooks