Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Checkbox list converting characters in label to character entities

 
Sam Gardner
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Guys -

I've run into a weird issue with a struts2 checkboxlist.

Whenever items in the list contain '<' or '>' characters, they are being converted to their character entities in the HTML, so that links that I want encoded in my options are not being recognized.

The radio list does not do this, so does anyone know what I might change in the freemarker to disable this?

For example, a problematic list entry:


outputs as:

"SSI <a href="http://en.wikipedia.org/wiki/Supplemental_Security_Income" target="_blank">Supplementary Security Income</a> for"

instead of evaluating as a link.

Thanks for any help
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The checkboxlist template file contains this:which should answer your question. (The radiomap template file omits the ?html escaping.)
 
Sam Gardner
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, thank you very much. That fixed it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic