File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes Apache Velocity Escape characters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Apache Velocity Escape characters" Watch "Apache Velocity Escape characters" New topic

Apache Velocity Escape characters

Niall Loughnane
Ranch Hand

Joined: Dec 07, 2006
Posts: 208

I know that is not the right forum but PLEASE help,

I am creating a velocity template and the velocity template object is being escaped,

what i am trying to do is use the following template:

this calls the method getUrl() on the person class but the url that is being returned is being escaped,

urls are being converted from:
"< a href='' rel="nofollow" >< / a >"
& quot ; & lt ; a href= & quot; quot;& gt; lt;/a& gt;& quot;

i think this is being done in:
* class: org.apache.velocity.runtime.parser.node
* method: render(InternalContextAdapter context, Writer writer)

any advice would be amazing,

Thanks in Advance,

I agree. Here's the link:
subject: Apache Velocity Escape characters
jQuery in Action, 3rd edition