hi
there is a textarea on the page. and i am sending its value via ajax.
var text = $("textarea#text").val();
var dataString = 'text='+ text;
$.ajax({
type: "POST",
url: "do.php?act=save",
data: dataString,
cahce: false,
success: function() {
//success
}
});
if textarea value is sth like that black & white
, it breaks text after the black
if it is sth like that black + white
it outputs like black white
how can i avoid this?
thx