Hi, I am trying to strip out the categories of an article to display them in a separate inputbox below the edit page inputbox (see http://www.mediawiki.org/wiki/Extension:CategorySuggest). I use parser->parse() and then parseroutput->getCategories() to get the categories. I would then like to have wikitext without the category links in the edit window. I got nice html without the category links from the parser and of course I still have the original wikitext with the category links. But I don't have wikitext without category links. How can I a) strip out the categories (while observing nowiki tags) from the wikitext or b) convert the html to wiki text or c) any other ideas?
Thanks, Andi