Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前我们使用的符号£如下 £:
£
£
但是 XSLT 中有没有办法强制这样的符号使用数字变体,例如£?
£
我们需要能够转换所有具有 HTML 名称的符号,例如 £ © etc。
©
使用:
<xsl:output encoding="ascii"/>
这会强制序列化程序为数值大于 127 的任何字符输出相应的字符实体引用。
我试图在两行中获取按钮文本,请参见小提琴:http: //jsfiddle.net/gaurav360/Yxqx2/
它在除Opera之外的所有浏览器中运行良好...
提前致谢。