How can I display html tags inside an HTML document?

前端 未结 8 801
囚心锁ツ
囚心锁ツ 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:46

    You could use some javascript to change elements on the fly.

    If you use jQuery:

    $( 'pre' ).text( $( 'pre' ).html() );
    

    does the trick.

提交回复
热议问题