# Replace backslash escape only in old posts after import

**URL:** <https://meta.discourse.org/t/replace-backslash-escape-only-in-old-posts-after-import/80891>\
**Category:** Product Support\
**Created:** [18.Февраль.2018 17:20:08 UTC](https://meta.discourse.org/t/replace-backslash-escape-only-in-old-posts-after-import/80891 "2018-02-18T17:20:08Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [19.Февраль.2018 20:28:22 UTC](https://meta.discourse.org/t/replace-backslash-escape-only-in-old-posts-after-import/80891/10 "2018-02-19T20:28:22Z")

</div>

> [@fhe](#):
>
> makes a difference.

Yes, escapes in strings inside single quote marks are literal strings, all escapes intact. Escapes inside double quote marks get escaped before going to the next piece of code. i.e.  
‘\\\\’ goes as ‘\\\\’ while “\\\\” goes as ‘\\’  
Similar with ‘&amp;’ → ‘&amp;’ vs “&amp;” → ‘&’

Can be a gremlin that’s not so easy to pin down.

---

_[View the full topic](https://meta.discourse.org/t/replace-backslash-escape-only-in-old-posts-after-import/80891)._
