How do I display the copyright symbol in an XPage?

我只是一个虾纸丫 提交于 2019-12-05 10:31:39

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.

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

Wikipedia has several other options that may also work.

You can turn escaping off on a xp:text

<xp:text escape="false">
   <xp:this.value><![CDATA[&copy]]></xp:this.value>
</xp:text>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!