I've a specific situation which give me a problem. That's my simplified code :
myObjectContainingHTML = {
something : "a",
html : "<table align=\"center\"><tr><td>foo</td><td>bar</td></tr></table>"
};
myParams = {
otherthing : 'b'
};
kapsule = {
provider : 'wizard',
data : 'kapsule=' + JSON.stringify({
data : myObjectContainingHTML
}),
params : myParams,
cache : false
};
proxy(kapsule);
But that's give that request "Form Data" in Dev Tools :
kapsule:{"something":"a"; "html_content":"<table align
amp;utm_source:n
nbsp;! </span></td> </tr> </tbody></table> <table align:\"center\" border
It breaks the stringgived to data. But if I remove JSON.stringify it doesn't work too and I've tried with .toString() instead of, but no more interesting results.
How do you provide HTML string to $http ?
Thanks !