浏览器显示实体名称而不是符号

发布于 2024-12-15 06:48:55 字数 273 浏览 8 评论 0原文

我有一个网格(不幸的是第三方),我用数据填充它。数据编码如下:

<test>

显示页面时我仍然看到

<test>

而不是

<test>

任何想法为什么?或者甚至如何在浏览器中显示 < 广告 <

I have a grid (unfortunately third-party) and I populate it with data. Data is encoded like:

<test>

When page is displayed I still see

<test>

instead of

<test>

Any ideas why? Or even how it's possible to display < ad < in browser?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

江心雾 2024-12-22 06:48:55

事实证明,控件在幕后进行了 html 编码,打印的文本是:

<测试>

It turned out that control did html encoding behind the scenes, and printed text was :

&lt;test&gt;

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文