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

How to pass HTML from callback to template

Discussion in 'XenForo Development Discussions' started by gginni, Apr 26, 2013.

  1. gginni

    gginni Active Member


    I was creating my first page using call back and templates by refering below video tutorial:-


    I was succesfully able to do whatever video have and some other things which I wanted. But I'm stuck in doing one thing... Here is my requirement:-

    1. I have written below line of code in my callback

    $response->params['htmlpasstotemplate'] = "<a href='test.com'>Click</a>";
    And then I want to show this anchor tag on rendered page... I want to know what should I use in template to show this anchor tag as HTML and not text... Using

    in template shows text... I want HTML output...
  2. gginni

    gginni Active Member

    Lil bit search on forum solved my problem :)

    {xen:raw $htmlpasstotemplate}
    and it worked :)

    I would love to see full documentation at one place... that will actually help dealing with these kind of smaller issues

    Thanks and mark this question as closed

Share This Page