Bunu elle montaj ise belki bir yerde işlev htmlentities
is or isn't being called on your text? You can use html_entity_decode
to decode it back. Having read most of the responses and your question again though, I would look at the code submitting the AJAX, you most likely need to urlencode the string in javascript before passing it as post data. Most libraries will handle this for you. The function encodeURIComponent
a> veri aranmalıdır.
var postData = encodeURIComponent(key) + '=' + encodeURIComponent(value).replace(/%20/g,'+');
Ben bir jQuery işlevi kullanarak edildi yorumlarınızı birinde fark ettim. jQuery $.param()
that will encode a postable string for you, or even easier is just to pass an object to the data parameter of the ajax call (internally it will be passed through $.param()
adlı bir yardımcı işlevi vardır
$.ajax({
method:'POST',
url: '/somefile.php',
data: {
rt: $("textarea#rt").val(),
Type: 1,
//.... more data here
},
success: function(data) {
}
});