You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Argo Vilberg <wi...@gmail.com> on 2011/04/28 18:07:24 UTC

Tapestry render plain text as html

I want write simple content management system in Tapestry 5.

If i use String variable  in template

${content}

Then tapestry render this text to look like html


Example

Text is :
 <h1> Teenusest</h1> <p>


But tapestry shows this in template as

 &lt;h1&gt; Teenusest&lt;/h1&gt; &lt;p&gt;


So how can i disable this HTML rendering ?


Argo

Re: Tapestry render plain text as html

Posted by Argo Vilberg <wi...@gmail.com>.
Works!

Thank you very much!


Argo


2011/4/28 Adam Zimowski <zi...@gmail.com>

> Hi -
>
> You probably want to use OutputRaw component like this:
>
> <t:outputraw value="content"/>
>
> Here is documentation link:
>
> http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html
>
> Adam
>
> On Thu, Apr 28, 2011 at 11:07 AM, Argo Vilberg <wi...@gmail.com> wrote:
> > I want write simple content management system in Tapestry 5.
> >
> > If i use String variable  in template
> >
> > ${content}
> >
> > Then tapestry render this text to look like html
> >
> >
> > Example
> >
> > Text is :
> >  <h1> Teenusest</h1> <p>
> >
> >
> > But tapestry shows this in template as
> >
> >  &lt;h1&gt; Teenusest&lt;/h1&gt; &lt;p&gt;
> >
> >
> > So how can i disable this HTML rendering ?
> >
> >
> > Argo
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Tapestry render plain text as html

Posted by Adam Zimowski <zi...@gmail.com>.
Hi -

You probably want to use OutputRaw component like this:

<t:outputraw value="content"/>

Here is documentation link:
http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html

Adam

On Thu, Apr 28, 2011 at 11:07 AM, Argo Vilberg <wi...@gmail.com> wrote:
> I want write simple content management system in Tapestry 5.
>
> If i use String variable  in template
>
> ${content}
>
> Then tapestry render this text to look like html
>
>
> Example
>
> Text is :
>  <h1> Teenusest</h1> <p>
>
>
> But tapestry shows this in template as
>
>  &lt;h1&gt; Teenusest&lt;/h1&gt; &lt;p&gt;
>
>
> So how can i disable this HTML rendering ?
>
>
> Argo
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org