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

前端 未结 9 1114
忘了有多久
忘了有多久 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:13

    There isn't.

    In theory you could use a CDATA block, but no browser supports that in text/html mode.

    Use character references.

提交回复
热议问题