What do I need to escape inside the html
 tag

前端 未结 4 1211
栀梦
栀梦 2021-02-07 03:19

I use the

 tag in my blog to post code. I know I have to change < to < and > to >         


        
4条回答
  •  梦毁少年i
    2021-02-07 03:52

    For posting code within your markup, I suggest using the tag. It works the same way as pre but would be considered semantically correct.

    Otherwise, and

     only need the angle brackets encoded.

提交回复
热议问题