簡體   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