Manual:Hooks/ParserAfterTidy

Details

 * &$parser: Parser object. Can be used to manually parse a portion of wiki text from the $text.
 * &$text: Represents the text for page.

This hook is commonly used to re-introduce content that was earlier embedded by an extension during page rendering, either encoded or represented by a marker, by searching for it and replacing it with HTML content. Such a techniques allows MediaWiki extensions to output HTML that isn't mangled by the parser, e.g., blacklisted HTML tags. See Tag extension example