HTML标记在struts2标记中不起作用

时间:2012-02-07 04:41:40

标签: html struts2 ckeditor

我正在使用CK-EDITOR从用户那里获取输入并将输入保存在数据库中。 当我显示这个槽struts2标签时,通过CK-EDITOR插入的HTML标签无效。

它在jsp页面中显示如下:

<p> <strong>Because of your browser security settings, the editor is not able to access your clipboard data directly. You are required to paste it again in this window</strong></p> 

1 个答案:

答案 0 :(得分:0)

您可以使用属性escape="false"来修复它:

<s:property escape="false" value="matchBean.links" />

它将显示HTML标记。

相关问题