Sending HTML Code Through JSON

前端 未结 7 1103
暗喜
暗喜 2020-11-30 07:07

I\'ve got a php script which generates HTML content. Is there a way to send back that HTML content through JSON to my webpage from the php script?

7条回答
  •  感动是毒
    2020-11-30 07:59

    You can send it as a String, why not. But you are probably missusing JSON here a bit since as far as I understand the point is to send just the data needed and wrap them into HTML on the client.

提交回复
热议问题