繁体   English   中英

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

[英]HTML tags not work in the struts2 tags

我正在使用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> 

您可以使用属性escape="false"进行修复:

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

它将显示HTML标记。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM