# איך לחמוק מ-"&" ו-"+" בזמן שליחת 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:** 1

<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:** [1 בפברואר,‏ 2017,‏ 9:09am UTC](https://meta.discourse.org/t/how-to-escape-and-in-raw-during-post-client-side/56705/1 "2017-02-01T09:09:48Z")

</div>

Appreciate your help in the following:  
we need to allow user to POST new topics client-side with some tags that include “&” (like UTF-8 symbol characters, starting with “&#” and some other)

we use client-side calls like that (prefix is like “title=New topic title&category=uncategorized&raw=”)

POST:

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

and of course, it breaks at first “&” in raw body.  
Question: is there any smart way to escape breaking at “&” tags? thanks

---

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