Title: [Plugin: Stray Random Quotes] Backslashes
Last modified: August 19, 2016

---

# [Plugin: Stray Random Quotes] Backslashes

 *  [usborne](https://wordpress.org/support/users/usborne/)
 * (@usborne)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/)
 * Hey, great plugin but I’m having a problem with it.
 * Wherever I have an apostrophe in my quote, it automatically adds a backslash.
 * For example if one of my quotes includes “It’s my goal” – the manager prints “
   It\’s my goal”.
 * What can I do to prevent this from happening.
 * Thanks
 * [http://wordpress.org/extend/plugins/stray-quotes/](http://wordpress.org/extend/plugins/stray-quotes/)

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

 *  [tictok](https://wordpress.org/support/users/tictok/)
 * (@tictok)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/#post-1333262)
 * Hi, I’ve just noticed the same thing on a live site of mine.
 * I’ve been using Stray Random Quotes for a while and somehow managed to only include
   quotes without any apostrophes…. up until now.
    Recently added a bunch of new
   quotes and this is happening all over.
 * Anyone have any ideas for fix?
 * Many thanks
    Stef
 *  [tictok](https://wordpress.org/support/users/tictok/)
 * (@tictok)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/#post-1333263)
 * Hiya – a quick fix,which I think will validate, is to use & # 39; (without any
   spaces) instead of using a apostrophe.
 *  [not2bug](https://wordpress.org/support/users/not2bug/)
 * (@not2bug)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/#post-1333264)
 * I edited “stray-quotes/inc/stray_manage.php”
 * //magic quotes
    //if ( ini_get(‘magic_quotes_gpc’) ) {
 *  $quote = stripslashes($quote);
    $author = stripslashes($author); $source = stripslashes(
   $source); $category = stripslashes($category); $visible = stripslashes($visible);//}
 * My magic quotes were off, yet backslashes were creeping in somewhere.
    So I commented
   out the conditional of the if block to strip them off regardless.
 * It works as expected for me now.
 * Note: this is a workaround, not a bugfix.
 *  [not2bug](https://wordpress.org/support/users/not2bug/)
 * (@not2bug)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/#post-1333265)
 * Oops. Apply the commenting workaround to this file as well.
    “stray-quotes/inc/
   stray_new.php”
 * My previous post fixed editing. This fixes adding.
 *  [zeyalabs](https://wordpress.org/support/users/zeyalabs/)
 * (@zeyalabs)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/#post-1333306)
 * And [on this blog post](http://www.zeyalabs.ch/posts/stray-quotes-z/) you can
   find the **complete packaged solution** to this problem (causes of which are 
   described in [another article](http://www.zeyalabs.ch/posts/unwanted-escaping-backslashes-in-wordpress-2-9/)).
 * The package also includes a really handy extra — simple **search functionality**(
   allows you to search on quote body by a single keyword or phrase).
 *  [trusktr](https://wordpress.org/support/users/trusktr/)
 * (@trusktr)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/#post-1333322)
 * Yeah, this bug needs to be fixed!!!
 *  [trusktr](https://wordpress.org/support/users/trusktr/)
 * (@trusktr)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/#post-1333323)
 * Not2Bug’s workaround works!
 * Also, to get rid of slashes appearing in the widget title, add the following 
   right before line 122 of stray-quotes/inc/stray_widgets.php:
 * >  $posted[‘title’] = stripslashes($posted[‘title’]);
 *  [Ryan](https://wordpress.org/support/users/daobydesign/)
 * (@daobydesign)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/#post-1333325)
 * Great fix not2bug.
 * Just a quick note in case it gives anyone else a 1/2-second pause when they implement
   this and it doesn’t work — you’ll have to to resave your quotes.
 *  [helloari](https://wordpress.org/support/users/helloari/)
 * (@helloari)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/#post-1333334)
 * thanks for that fix. but i might go back to ‘quotes collection’ unless some generous
   developer wants to maintain this great plugin.
 *  [trusktr](https://wordpress.org/support/users/trusktr/)
 * (@trusktr)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/#post-1333337)
 * It appears the plugin has been fixed [resolved]
 *  [cbiagi](https://wordpress.org/support/users/cbiagi/)
 * (@cbiagi)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/#post-1333339)
 * Just posting to confirm that not2bug’s workaround worked for me. THANKS!
 *  [trusktr](https://wordpress.org/support/users/trusktr/)
 * (@trusktr)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/#post-1333340)
 * If you have the latest version this bug should already be fixed…
 *  [cbiagi](https://wordpress.org/support/users/cbiagi/)
 * (@cbiagi)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/#post-1333341)
 * I’m using the current version (1.9.9) and still had this problem.
 *  [aravere](https://wordpress.org/support/users/aravere/)
 * (@aravere)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/#post-1333344)
 * Thanks, Zeyalabs, for the fix. Works great! No slashes, and like the new features.
   So far, so good!

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

The topic ‘[Plugin: Stray Random Quotes] Backslashes’ is closed to new replies.

 * 14 replies
 * 9 participants
 * Last reply from: [aravere](https://wordpress.org/support/users/aravere/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-stray-random-quotes-backslashes/#post-1333344)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
