# איך לחמוק מ-"&" ו-"+" בזמן שליחת POST בגישה ישירה

**URL:** <https://meta.discourse.org/t/how-to-escape-and-in-raw-during-post-client-side/56705>\
**Category:** Product Support\
**Created:** [1 בפברואר,‏ 2017,‏ 9:09am UTC](https://meta.discourse.org/t/how-to-escape-and-in-raw-during-post-client-side/56705 "2017-02-01T09:09:47Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Denis\_Didkovsky](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@Denis\_Didkovsky](https://meta.discourse.org/u/Denis_Didkovsky)\
**Post date:** [15 במאי,‏ 2017,‏ 7:49pm UTC](https://meta.discourse.org/t/how-to-escape-and-in-raw-during-post-client-side/56705/8 "2017-05-15T19:49:03Z")

</div>

that approach works.

```plaintext
data = { title: "New Topic Title", category: "uncategorized", raw: "whatever" };
datatopost = $.param(data);

 $.ajax({
            url: "http://community.yoch.tv/posts/",
            type: 'POST',
            dataType: 'json',
            //contentType: 'application/json',
            contentType: 'application/x-www-form-urlencoded; charset=UTF-8',
            processData: false,
            data: datatopost,
            success: function (data) {
          console.log(JSON.stringify(data));
        },
        error: function(){
            console.log(JSON.stringify(data));
          console.log("Cannot get data");
        }
        });
```

---

_[View the full topic](https://meta.discourse.org/t/how-to-escape-and-in-raw-during-post-client-side/56705)._
