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

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

    I suggest using the html iframe tag and put the text you like to display in the src attribute. you only have to url or base64 encode it first.

    example (urlencoded):
    
    
    example (base64):
    
    
    Result displayed as:
    ""
    

提交回复
热议问题