Parser question - using $wgOut->parse() when $wgRawHTML = true

View: New views
1 Messages — Rating Filter:   Alert me  

Parser question - using $wgOut->parse() when $wgRawHTML = true

by Joshua C. Lerner-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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)

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@...
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
LightInTheBox - Buy quality products at wholesale price