1

How can I get a html format text through json, like below format?

<div class="header" id="header_1">
 <p>All glitters are not gold</p>
</div>

Because json doesn't support " character inside the object value.

Arindam
  • 11
  • 1
  • 3

1 Answers1

0

You can escape quotes in JSON with \"

Check this answer for a list of all JSON escape characters.

Community
  • 1
  • 1
jleahy
  • 16,149
  • 6
  • 47
  • 66