Title: Escape strings?
Last modified: August 22, 2016

---

# Escape strings?

 *  [lonfirebrand](https://wordpress.org/support/users/lonfirebrand/)
 * (@lonfirebrand)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/escape-strings/)
 * I entered strings with quotes and it seemed to escape them under the hood, but
   also truncated them.
    If I backslash-escaped them myself, it just added more 
   backslashes.
 * [https://wordpress.org/plugins/better-search-replace/](https://wordpress.org/plugins/better-search-replace/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Expanded Fronts](https://wordpress.org/support/users/expandedfronts/)
 * (@expandedfronts)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/escape-strings/#post-5654537)
 * Thanks for reporting this. Looking into this further and will keep you posted.
 *  [Marcelo Pedra](https://wordpress.org/support/users/kent-brockman/)
 * (@kent-brockman)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/escape-strings/#post-5654725)
 * Hi! I’m having the same issue. Any news on it?
 * If I search “domain.com” the plugin found 23000 ocurrences, but if I search “
   domain.com/dev” it found 55. When I search using phpmyadmin, I can find those
   23k results. Looks like a sanitization problem escaping the stirng for the query,
   right?
 *  [Expanded Fronts](https://wordpress.org/support/users/expandedfronts/)
 * (@expandedfronts)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/escape-strings/#post-5654726)
 * Hello,
 * I’ve added a fix for this on GitHub – you can download and try this out here:
   
   [https://github.com/ExpandedFronts/Better-Search-Replace/archive/dev.zip](https://github.com/ExpandedFronts/Better-Search-Replace/archive/dev.zip)
 * I’ll be adding this into the next release if all works well.
 *  [Marcelo Pedra](https://wordpress.org/support/users/kent-brockman/)
 * (@kent-brockman)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/escape-strings/#post-5654727)
 * Great. I’ll give it a try.
 *  [thoward5000](https://wordpress.org/support/users/thoward5000/)
 * (@thoward5000)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/escape-strings/#post-5654734)
 * Gave it a shot, still some bugs. Added a github issue: [https://github.com/ExpandedFronts/Better-Search-Replace/issues/8](https://github.com/ExpandedFronts/Better-Search-Replace/issues/8)
 * Thanks for this though!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Escape strings?’ is closed to new replies.

 * ![](https://ps.w.org/better-search-replace/assets/icon-256x256.png?rev=2706527)
 * [Better Search Replace](https://wordpress.org/plugins/better-search-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-search-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-search-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/better-search-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-search-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-search-replace/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [thoward5000](https://wordpress.org/support/users/thoward5000/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/escape-strings/#post-5654734)
 * Status: not resolved