Using html tags in a resource set

I am trying to put a message from a resource package that contains html tags, for example:

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

in jsf outputLabel:

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

Well ... the text is displayed as plain iso text to render the link.

Do you have any ideal .. why?

Thank.

+3
source share
1 answer

Solution found:

I need to add:

escape="false"

to the OutputLabel control :)

+3
source

Source: https://habr.com/ru/post/1761921/


All Articles