Hey, all.
I'm looking to change the way my search results appear. Currently, they include, as per default, the link to the article, and below that a snippet of text from it. My problem is that this text contains iteral wikicode ([[]], '''', etc.). How can I change the results page so that these marks are removed?
Having stared and stared at searchengine.php and its related files, I've found the classes, extended classes, and their functions way over my head. Is there some specific function that parses wikitext? And which function's return do I have to parse thus?
-- Sincerely, Alex Edelman "Alpaca" http://www.thekolwiki.net/
Parsing? Hmm, sounds like that *might* be something the parser does...see the global $wgOut output page object knocking about, which contains a few of those functions. Also refer to Parser.php...
Rob Church
On 29/11/05, Alex Edelman alexoedelman@gmail.com wrote:
Hey, all.
I'm looking to change the way my search results appear. Currently, they include, as per default, the link to the article, and below that a snippet of text from it. My problem is that this text contains iteral wikicode ([[]], '''', etc.). How can I change the results page so that these marks are removed?
Having stared and stared at searchengine.php and its related files, I've found the classes, extended classes, and their functions way over my head. Is there some specific function that parses wikitext? And which function's return do I have to parse thus?
-- Sincerely, Alex Edelman "Alpaca" http://www.thekolwiki.net/ _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org