I'm sending HTML trough POST and the '&'s are messing it up, how can I avoid it? Tried replacing & with \&, didn't work.
emailcontinut = CKEDITOR.instances['emailContinut'].getData();
var parametri = "Trimite="+trimite + "&codc="+codc + "&emailSubiect="+emailsubiect + "&emailContinut="+emailcontinut + "&adact="+adact + "&sid="+Math.random();
when I echo $_POST['emailContinut'] in the target PHP, it stops at the first '&' in an
the solution was just
emailcontinut = escape(emailcontinut);