简体   繁体   中英

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. When I am showing this trough struts2 tag the HTML tag inserted through CK-EDITOR not working.

It show in the jsp page like :

<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:

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

It will display the HTML tag.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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