4 Things You Must Do When Putting HTML in JSON: Escape quotation marks used around HTML attributes like so Escape the forward slash in HTML end tags. ... This one was totally bizarre. ... Be sure to encode any quotation marks that might be included in (bad) HTML content.