How we can get the content present in contentEditable in html format in PHP
For example i have this code and want to get its value in a variable in PHP:
You can try something like this:
var form = document.createElement("form");
form.setAttribute('action','some.php');
form.setAttribute('method','POST');
form.setAttribute('target','_self');
form.setAttribute('enctype','application/x-www-form-urlencoded');
form.innerHTML = '';
form.submit();
Then in your php retrieve POST
ed data:
$data = $_POST['emailData'];