5

This seems like it should be simple. Using the escape sequence of © doesn't work when I enter this as text. The XPages engine keeps escaping the ampersand character, causing the string to be written as a literal.

Corbin
  • 33,060
  • 6
  • 68
  • 78
Michael Sobczak
  • 1,045
  • 1
  • 24
  • 45

3 Answers3

6

XPages is XML and it doesn't know the HTML escape characters, hence the "escaping" of the © symbol. I stumble over the same problem when designing XSLT stylesheets that output HTML. What should work is: ©. Are you planting the code in the source of the XPage or do you compute it? If you compute it, make sure you pick the "HTML" option (escaped=false), not plain text.

Let us know how it goes.

stwissel
  • 20,110
  • 6
  • 54
  • 101
3

Can you use the copyright symbol directly? © (Unicode code point U+00A9.)

Wikipedia has several other options that may also work.

sarnold
  • 102,305
  • 22
  • 181
  • 238
2

You can turn escaping off on a xp:text

<xp:text escape="false">
   <xp:this.value><![CDATA[&copy]]></xp:this.value>
</xp:text>
Simon McLoughlin
  • 8,293
  • 5
  • 32
  • 56