【发布时间】:2015-05-14 23:33:56
【问题描述】:
除非明确设置escapeHtml="false",否则<s:property>标签默认转义HTML:
<s:property value="someValue" />
<!-- the HTML contained in "someValue" will be escaped. -->
<s:set> 也有这种行为吗?
<s:set var="myVariable" value="someValue" />
<!-- will the HTML contained in "someValue" be escaped ? -->
【问题讨论】:
-
为什么要否决这个问题?
-
真正的问题是为什么不赞成答案...顺便说一句,我已经编辑了这个问题,因为反对票的罪魁祸首似乎是缺乏清晰度。现在应该很清楚了。
-
没错。谢谢安德里亚
标签: jsp struts2 escaping struts-tags html-escape