'use "&" character in jsf page [duplicate]

I want to use "&" character in jsf page but get error.

 <p:commandLink type="button" styleClass="close" aria-hidden="true"
                action="#{tages.removeText}" update="panel_topic" value="&time;">
     &times;
     <f:setPropertyActionListener target="#{tages._tar}" value="#{txt}"/>

 </p:commandLink>

following error :

Error Traced[line: 24] The entity "times" was referenced, but not declared.

how to use "&" character in jsf page ?



Solution 1:[1]

I think you should use &amp; instead of & in HTML.

Solution 2:[2]

You can use its decimal code: &#215

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Robert Lu
Solution 2 Miguel Ángel Júlvez