diff --git a/jquery.iframe-transport.js b/jquery.iframe-transport.js index b5ba270..8d47152 100644 --- a/jquery.iframe-transport.js +++ b/jquery.iframe-transport.js @@ -191,6 +191,10 @@ textarea.value : root ? (root.textContent || root.innerText) : null }; + // This fixes bug for google-chrome, some plugin accidentally appends html comment into json + if(content.text){ + content.text = content.text.replace(/^/g, ''); + } cleanUp(); completeCallback(status, statusText, content, type ? ("Content-Type: " + type) :