Menu

#100 Global automatic escaping (Was: html escape is not configurable in struts2)

2.3.24
closed-fixed
nobody
None
7
2016-05-21
2012-05-16
No

in struts2 freemarker projects the escape html is not globally configurable
possible workaround for the problem: is change in freemarker.core.DollarValue: accept method
expression with '!noescape' is not escaped

Discussion

  • Iouri Krasniak

    Iouri Krasniak - 2012-05-16

    source for modified file

     
  • Dániel Dékány

    So, you want automatic HTML escaping, without <#escape x as x?html>...</#escape>, and then a way to disable that. That's something that meant to be added (on different way than that you have shown). I don't know when yet... maybe even pre-2.4. And this is a feature request then.

     
  • Dániel Dékány

    • summary: html escape is not configurable in struts2 --> Global automatic escaping (Was: html escape is not configurable in struts2)
    • status: open --> open-accepted
    • Group: --> undecided
     
  • Dániel Dékány

    Ticket moved from /p/freemarker/bugs/362/

     
  • Dániel Dékány

    • Priority: 5 --> 7
     
  • Dániel Dékány

    • Group: undecided --> 2.3.24
     
  • Dániel Dékány

    2.3.24 introduces new kind of auto-escaping (not based on #escape) that solves this.

     
  • Dániel Dékány

    • status: open-accepted --> closed-fixed
     

Log in to post a comment.