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
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
source for modified file
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.Ticket moved from /p/freemarker/bugs/362/
2.3.24 introduces new kind of auto-escaping (not based on
#escape
) that solves this.