[Mediawiki-l] Parser question - using $wgOut->parse() when $wgRawHTML = true

Joshua C. Lerner jlerner at gmail.com
Fri Jul 4 21:41:40 UTC 2008


Hi - Extension:Call has the following:

// call the template and produce output
$wgOut->addHtml($wgOut->parse("{{".$wikitext."}}"));

$wikitext contains something like "Form,field=value", where "Form"
refers to Template:Form. Template:Form contains raw HTML inside
<html>..</html>. $useRawHTML is set to true, and just visiting
[[Template:Form]] directly works fine.

However, calling Template:Form via something like
http://localhost/wiki/Special:Call/Form,field=value returns a page
that displays raw HTML. It seems that the preprocessor that handles
raw HTML (when $useRawHTML to true) doesn't get executed when using
$wgOut->parse().

Is there anyway to have the parser respect $useRawHTML when used this way?

Thanks in advance,

Joshua (User:Jlerner)



More information about the MediaWiki-l mailing list