Re: [Cppcms-users] Disable escaping of variables when rendering template
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-07-30 04:58:19
|
Yes, See this: <http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_templates_comm#Variable+with+filters> and this <http://art-blog.no-ip.info/cppcms_ref_v0_99_1/namespacecppcms_1_1filters.html> Basically what you need is: <% mypropery | raw %> > > is there an elegant solution to disable the escaping of variables that > are rendered in a template? I require this because I have to give some > HTML tags for formatting unescaped to the client browser. > > Currently, I'm using this code: > <% c++ out()<<content.myproperty; %> > > But to me this seems not very elegant... > > Thanks for your help, > Julian |