问题描述
这似乎应该很简单.当我将其作为文本输入时,无法使用©
的转义序列. XPages引擎不断转义&字符,导致字符串被写为文字.
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.
推荐答案
XPages是XML,它不知道HTML转义字符,因此©
符号的转义".在设计输出HTML的XSLT样式表时,我偶然遇到了同样的问题.应该起作用的是:©
.您是将代码植入XPage的源中还是对其进行计算?如果进行计算,请确保选择"HTML"选项(escaped = false),而不是纯文本.
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.
让我们知道它的进展.
这篇关于如何在XPage中显示版权符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!