Is there a HTML/CSS way to display HTML tags without parsing?

前端 未结 9 1108
忘了有多久
忘了有多久 2020-12-05 23:25

Is there any way that I could display HTML tags without parsing? Tags like XMP worked before perfectly but now it\'s replaced with PRE that isn\'t

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-06 00:27

    Technically you could use tag in the code you are trying to show. It'd just easier to escape the <.

提交回复
热议问题