Manual talk:Hooks/ParserBeforeStrip

Sanity Check
This hook runs twice (possibly more). To prevent this from happening, just add the following to fnMyHook:

-- Egingell 13:29, 16 August 2007 (UTC)


 * I believe this happens because certain user interface messages go through the parser. Therefore it is run once for the page content, and then however many more times for various UI messages.  I am not 100% sure about this however, so perhaps a bit more investigation is required.  Assuming I am right, then the above code will be useful for extensions where it is important that they only run once per page view, but for most other situations the standard behaviour will cause no problems. --HappyDog 15:03, 27 August 2007 (UTC)