What do I need to escape in my HTML (JSON response)

后端 未结 4 711
野趣味
野趣味 2021-01-21 01:24

My JSON response looks like:

{rc: \"200\", test: \"\", user: \"
4条回答
  •  日久生厌
    2021-01-21 02:03

    In your example, you won't have to escape anything. But, if the HTML comes with double quotes, you'll have to escape them, obviously.

提交回复
热议问题