< Manual:Hooks
![]() | This feature was removed completely in version 1.36.0 (after being deprecated in 1.14.0). Since the parser rewrite in MW 1.14, this function now behaves identically to ParserBeforeStrip and no longer has special tags (e.g. nowiki, pre, etc.) stripped out first mailarchive:wikitech-l/2009-October/045577.html. If you need to process the stripped content, then the InternalParseBeforeLinks hook might be a good alternative. |
ParserAfterStrip | |
---|---|
Available from version 1.5.0 Removed in version 1.36.0 | |
Define function: | public static function onParserAfterStrip( &$parser, &$text, &$strip_state ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"ParserAfterStrip": "MyExtensionHooks::onParserAfterStrip"
}
}
|
Called from: | File(s): parser/Parser.php |
Interface: | ParserAfterStripHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:ParserAfterStrip extensions.
This hook functions identically to ParserBeforeStrip<nowiki>
, HTML comments, etc.) have been stripped from the text.
As of MW 1.14, the hook was deprecated. From this point there is no difference at all between this and ParserBeforeStrip
. The hook was removed altogether in MW 1.36.If you need to apply transformations to the wiki text after the non-expandable elements have been stripped, then you should investigate the InternalParseBeforeLinks. It is not a direct replacement (there are some restrictions on what you can do) but it should handle the majority of use-cases that genuinely need this specific hook.
See also
- ParserBeforeStrip
- InternalParseBeforeLinks
- ParserBeforeTidy
- ParserAfterTidy
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.