简体   繁体   English

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

[英]HTML tags not work in the struts2 tags

I am using CK-EDITOR to get input from the user and save the input in the database. 我正在使用CK-EDITOR从用户那里获取输入并将输入保存在数据库中。 When I am showing this trough struts2 tag the HTML tag inserted through CK-EDITOR not working. 当我显示此槽struts2标签时,通过CK-EDITOR插入的HTML标签不起作用。

It show in the jsp page like : 它在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> 

You can use property escape="false" to fix it: 您可以使用属性escape="false"进行修复:

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

It will display the HTML tag. 它将显示HTML标记。

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

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