aspose file tools*
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
Author

Apache Velocity Escape characters

Niall Loughnane
Ranch Hand

Joined: Dec 07, 2006
Posts: 208
Hi,

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='http://www.john.com' rel="nofollow" >www.john.com< / a >"
to
& quot ; & lt ; a href= & quot;http://www.john.com//& quot;& gt;http://www.john.com& 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,

Niall
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Apache Velocity Escape characters