HTML value within JSON being truncated when received via ajax in ie -
weird sentence.. weird issue.
i have json this:
{ "id":"1246", "cost":"62.1603017827", "material":"blue", "class":"veroblue", "label":" ($62.16)", "mlabel":"blue", "html":"<div class=\"quote\">\r\n\t<input type=radio name=\"quoteuploads[selectedmaterial]\" value=\"1246\" checked=checked id=\"quote_uploads_quote_1246\" data-color=\"#a9bcf5\"\/>\r\n\t<label for=\"quote_uploads_quote_1246\" ><span class=\"swatch veroblue\"><span class=\"big veroblue\"><\/span> <\/span><span class=\"text\">blue <span class=\"cost\">($62.16)<\/span><\/span><\/label>\r\n<\/div>\t" },
when page loads above in object qobj. when console.log(qobj.html) get:
<div class="quote"> <input type=radio name="quoteuploads[selectedmaterial]" value="1250" id="quote_uploads_quote_1250" data-color="#fbf8ef"/> <label for="quote_uploads_quote_1250" ><span class="swatch duruswhite"><span class="big duruswhite"></span> </span><span class="text">polypropylene-like <span class="cost">($62.21)</span></span></label> </div>
now, when input changes reload json via ajax , store in qobj. after reloaded console.log(qobj.html) outputs:
</span> </span>polypropylene-like ($62.21)</span></span></label> </div>
the json string encoded , rendered same way when injected , received via ajax. have idea why happening?
Comments
Post a Comment