• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Apache Velocity Escape characters

 
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!