How to Replace content inside custom tag in MediaWiki before saving to database? -


First of all, I have MW 1.16 and 1.17, with PHP 5.3.5, MySQL 5.5.8 and Apache 2.2 Is established. .17

I have written a simple $ wgExtensionFunction which does not do anything now $ wgExtensionFunctions [] = "wfTestExtension"; Function wfTestExtension () {global $ wgParser; $ WgParser- & gt; Sethook ("myTag", "rendertst"); } Function renderet ($ input) {return $ input; }

What do I have to do, if I do & lt; MyTag & gt; Blah blah blah & lt; / MyTag & gt; If I write in the Add or Edit form, I want to be able to change the content inside my socket before saving the database. What system should I use for this? I'm assuming the hook? For example, with the hook of the article, the $ text worker already has & lt; MyTag & gt; is stripped, so there is no way to parse the string and find out what it was originally inside & lt; MyTag & gt;

I have spent hours trying to find something on Google, but I have almost quit. Any advice on everyone will be highly appreciated.

Cheers

will probably work:

"Someone Also the internal processing used to take action on the first raw wiki code is applicable "

Comments