如何防止 Jboss 将 xml 实体转换为 html 实体?

发布于 2025-01-04 11:06:26 字数 475 浏览 5 评论 0原文

较旧的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文