• 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


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


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