如何忽略段落中的标签? [英] How to ignore tags within a paragraph?
本文介绍了如何忽略段落中的标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用带有段落的显示标签?例如,我想显示文本 '<c>'在我的页面上的 p 标签内.然而,<c>被解析为标签而不是原始文本.
Is it possible to have display tags with a paragraph? For example, I want to display the text '<c>' on my page within a p tag. however, the <c> is parsed as a tag instead of raw text.
<p1>Microsoft Windows<c></p1>
在这个例子中,我想要 <c>显示为文本而不是用作标签.
In this example, I want the <c> to be displayed as text rather than being used as a tag.
推荐答案
为此,您需要使用 HTML 代码,用于符号<>".'<' 的代码是 <
和 '>'是 >
,所以你的代码应该是:
In order to do that, you need to use HTML codes for the symbols '<>'. The code for '<' is <
and that for '>' is >
, so your code should be:
<p> Microsoft Windows <c></p>
这篇关于如何忽略段落中的标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文