2012-02-07 52 views
1

我正在使用CK-EDITOR从用户获取输入并将输入保存在数据库中。 当我通过struts2标签显示通过CK-EDITOR插入的HTML标签不起作用时。HTML标记在struts2标记中不起作用

它显示在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> 
+0

我想办法做到这一点 通过添加标签属性** escape =“false”** 2012-02-07 07:57:59

回答

0

您可以使用属性escape="false"解决它:

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

它会显示HTML标签。