How to pass HTML from callback to template

gginni

Active member
Hi,

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

http://xenforo.com/community/threads/editing-templates-and-defining-a-callback-for-pages.7226/

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

Code:
$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

Code:
{htmlpasstotemplate}

in template shows text... I want HTML output...
 
Lil bit search on forum solved my problem :)

Used
Code:
{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
 
Top Bottom