How can I display html tags inside an HTML document?

前端 未结 8 784
囚心锁ツ
囚心锁ツ 2020-12-10 04:16

I simply want to create something like that:

blah blah

I\'ve been trying to do this for a long time though for

8条回答
  •  暖寄归人
    2020-12-10 04:25

    The easiest way I know is to replace the < and > with < and > that way it's not html anymore. There are several other codes like these for & symbols, etc.

    Where is the text coming from? If it's in javascript than you're easiest way would be to do a regex replace in javascript.

提交回复
热议问题