This has been asked before but mine is different. I cant rub my head around this. I have a wysiwyg form that is being fetched by jquery and saved by ajax
var content=$('.inputfield').val();
fields='front='+fcarddetails;
$.ajax({
method:'POST',
url:actionpage,
data:fields,
beforeSend:function()
{
$("#processing").show();
},
complete:function ()
{
$("#processing").hide();
},
success: function(feedback)
{
} etc.
When '&' is added to the field, the whole input is messed up. I a have handled all the html escapes, filters and special characters. But the code gets broken even before it reaches php action page. I cant convert '&' to & because it still contains '&'. Please help, problem is in js, not php but you can prove me otherwise. Thanks in advance.