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

Discussion in 'XenForo Development Discussions' started by Renari, Sep 13, 2012.

  1. Renari

    Renari Member

    For example:
    $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?
  2. Rigel Kentaurus

    Rigel Kentaurus Well-Known Member

    {xen:raw $template_a}
    Jake Bunce likes this.
  3. Renari

    Renari Member

    Thanks. ^^;

Share This Page