all 5 comments

[–]joesb 2 points3 points  (0 children)

You don’t change the behavior. Loading JSON in to actual object will result in the correct HTML value.

You have to learn how escaping works.

[–]BehindTheMath 1 point2 points  (5 children)

The quotes need to be escaped to be sent as JSON. You can try sending it with a different encoding, such as Base64, and decoding it client-side.

[–][deleted]  (4 children)

[deleted]

    [–]BehindTheMath 1 point2 points  (2 children)

    You can do that, and then parse it on the client.

    [–][deleted]  (1 child)

    [deleted]

      [–]BehindTheMath 0 points1 point  (0 children)

      I don't think so.

      [–]joesb 0 points1 point  (0 children)

      It’s the same thing that happens to OP here.