How to display the guard symbol in XPage?

It seems to be easy. Using escape sequences ©does not work when I enter it as text. The XPages engine retains the ampersand character, causing the string to be written as a literal.

+5
source share
3 answers

XPages is XML, and it does not know HTML escape characters, hence the "escaping" of a character ©. I am facing the same problem when designing XSLT stylesheets that output HTML. That should work: ©. Do you install the code in the XPage source or do you compute it? If you evaluate it, make sure you select the HTML option (escaped = false), not plain text.

, .

+6

? © ( Unicode U + 00A9.)

, .

+3

You can disconnect on xp: text

<xp:text escape="false">
   <xp:this.value><![CDATA[&copy]]></xp:this.value>
</xp:text>
+2
source

All Articles