Rasmikant Rasmikant - 1 year ago 152
HTML Question

Write html string in json

Is it possible write a HTMLstring inside JSON ?

Which I want to write like below in my json file

"id": "services.html",
"img": "img/SolutionInnerbananer.jpg",
"html": "<h2class="fg-white">AboutUs</h2><pclass="fg-white">developing and supporting complex IT solutions.Touchingmillions of lives world wide by bringing in innovative technology </p>"

Answer Source

You should escape the characters like double quotes in the html string by adding "\"

eg: <h2 class=\"fg-white\">

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download