簡體   English   中英

在資源包中使用html標簽

[英]using html tags in resource bundle

我嘗試從包含html標簽的資源包中放入一條消息,例如:

application.portal.action.help=test <a href\="https://google.ro" target\="_blank">the opt in conditions</a>

在jsf outputLabel中:

<h:outputLabel id="test" value="#{myupmessages['application.portal.action.help']}"></h:outputLabel>

嗯...文本呈現為呈現鏈接的純文本iso。

你有什么想法..為什么?

謝謝。

解決方案:

我需要添加:

escape="false"

到outputLabel控件:)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM