在 XML 中显示 HTML 标签
如果我想
<html xmlns="http://www.w3.org/1999/xhtml">
在 HTML 中显示:标签,如何将其注册为数据而不是 HTML?
If I want to show:
<html xmlns="http://www.w3.org/1999/xhtml">
tags in HTML, how can I register this as Data instead of HTML?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
将它们包装在 CDATA 部分中:
Wrap them in a CDATA section:
...或转义特殊字符:
... or escaping special characters:
您可以为 HTML 标记或 XML 标记指定不同的命名空间。您必须编写类似
...... ...
的内容。如果您不需要解析 HTML 标记,您可以将整个内容放入
。
You can give either HTML tags or your XML markup a differrent namespace. You'll have to write something like
<foo>...<h:html>...</h:html>...</foo>
.If you don't need to parse the HTML tags, you can just put the whole thing inside a
<![CDATA[...]]>
.