Re: confused about html escaping
Denis Bredelet <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
> My page is wrapped in a module that does has html escaping:
>
> <#escape x as x?html>
> ..
>
> <#nested>
> ..
>
> </#escape>
>
> Then my nested section is outputing the values of a collection like this:
>
> <pre>
> <#list someCollection as doc>
> <div class="line">${doc.line}</div>
Do you really have a collection "someCollection", for which each element has a "line" property, in your datamodel?
FreeMarker does not normally fail silently so any error message would help here.
-- Denis.
> </#list>
> </pre>
>
> Now the value of line is like "< some text here>"
>
> But on my page, it is showing up as blank. Looking at the actual rendered html it shows blank also. When I set a breakpoint in my code, I can see that the collection has the value "< some text here >" for the item in the collection 'someCollection'.
>
> I tried removing the <#escape x as x?html> also and nothing changed, still don't see the row.
>
> I just want to safely display this information like this in the html: < some text here >
>
>
>
>
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2