Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache Velocity Escape characters

Niall Loughnane
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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,

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic