如何防止 Jboss 将 xml 实体转换为 html 实体?
较旧的 Webkit 版本存在 html 实体(例如 nbsp 和 ouml 等)的问题。作为解决方案,我建议 此处 将我的 html-entities 更改为 xml-entities。然后问题应该得到解决,但事实并非如此,我认为这可能是由于 JBoss 造成的。看起来,当页面呈现时,它会将像 #160 这样的 xml 实体转换为 nbsp,这在较旧的 webkit 浏览器(以及一些当前的 android 浏览器)中不起作用。有谁知道如何防止 JBoss 这样做?我什至尝试使用普通符号(例如“ö”)代替 ouml 或 #246,但无济于事。
我试图找出其他人是否也有 JBoss 的这个问题,但我找不到任何东西。 如果我能得到任何帮助,我将不胜感激:)
-Dularion
older Webkit versions have a problem with html-entities such as nbsp and ouml etc. As a solution I was advised here to change my html-entities to xml-entities. The problem should then be solved, but it isn't, and I think that might be due to JBoss. It seems that when the page is rendered it translates xml entities like #160 to nbsp which doesn't work in older webkit browsers (and a few current android browsers). Does anyone know how to prevent JBoss from doing that? I even tried using normal symbols such as "ö" instead of ouml or #246 but to no avail.
I tried finding out if anyone else has this problem with JBoss but I couldn't find anything.
I'd appreciate any help I can get :)
-Dularion
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论