[Solved] Sending HTML to backend


You can send you HTML as a JSON object. Here a quick example.

    var elm = document.getElementById('yourElement');
    var value = elm.innerHTML;
    var objToSend = JSON.stringify(value);
// now send using ajax
...

1

solved Sending HTML to backend