• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Passing one template into another outputs raw html?

#1
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?
 

Rigel Kentaurus

Well-known member
#2
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}