HTML - Displaying text with <> in

后端 未结 3 1591
陌清茗
陌清茗 2021-01-28 23:37

I\'ve run into a problem that with HTML if I want to show some text which is in between arrows, for example, , it won\'t be displayed because i

相关标签:
3条回答
  • 2021-01-28 23:53

    For future reference: W3C's HTML Document Representation. It describes how to encode characters, and there's a link on that page to the full list of HTML character references.

    0 讨论(0)
  • 2021-01-29 00:01

    &lt; and &gt; are the HTML entities you should use in place of less than < and greater than > symbols.

    0 讨论(0)
  • 2021-01-29 00:07

    Use &lt; and &gt; in place of the arrows.

    0 讨论(0)
提交回复
热议问题