Passing one template into another outputs raw html?

Renari

Member
For example:
PHP:
$template_a = $template->create('template_a');
$hookParams['template_a'] = $template_a;
$params = $template->getParams();
$params += $hookParams;
$contents .= $template->create('template_b', $params);

Using {$template_a} in template_b will output the HTML from template_a as if it were run through htmlentities, is there a proper way to do this?
 
For example:
PHP:
$template_a = $template->create('template_a');
$hookParams['template_a'] = $template_a;
$params = $template->getParams();
$params += $hookParams;
$contents .= $template->create('template_b', $params);

Using {$template_a} in template_b will output the HTML from template_a as if it were run through htmlentities, is there a proper way to do this?
{xen:raw $template_a}
 
Back
Top Bottom