【发布时间】:2015-06-07 03:25:27
【问题描述】:
我想要<s:property value="Content" escapeHtml="false" /> 的等效 Struts 1.3 标签
目前我正在尝试类似<bean:write name="MyForm" property="Content" filter="false" ></bean:write>
我想从我的内容中隐藏/删除 HTML 标记 - 我从 CKEditor 获得数据,它是 HTML 标记的组合。
【问题讨论】:
-
很多人使用 Struts 1.x,Andrea 你不能这样评论。如果您不知道答案,请不要发表评论。请版主不要这样做
-
自Struts1 is EOL(多年来)以来,很多人都错了。顺便说一句,你不能简单地use JSP EL to print the value unescaped ?
-
@CodeHungry 这是一个无害的、有趣的评论;放松。每个人都知道,有时开发人员会在不幸的限制条件下工作。
-
很多人用过 Struts 1,并且还在继续使用,但是 Apache 不再支持 Struts 1,所以如果你发现 Struts1 中的 bug,你必须自己修复它。如果你想要一个新功能,你必须自己开发它。那时其他一切都按预期运行。
标签: java html struts2 struts struts-1