Title: Quote escaping errors in fields
Last modified: August 21, 2016

---

# Quote escaping errors in fields

 *  [richplane](https://wordpress.org/support/users/richplane/)
 * (@richplane)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/quote-escaping-errors-in-fields/)
 * The system doesn’t seem to be able to cope with quotes or apostrophes appearing
   in field names. When we see it either in the Registration Form Settings page 
   of the admin area or live on the form the quotes are preceded by a backslash.
 * Editing the field and leaving the backslash in place results in the backslash
   getting escaped as well. So “Enter your cat’s name” becomes “Enter your cat\’
   s name” and then “Enter your cat\\\’s name” and so on.
 * Must be a problem with escaping the data, clearly – are you using mysql_real_escape_string
   before writing to the DB?
 * I’ve checked your code – hope you don’t mind. It **looks** like you’re using 
   the WordPress function sanitize_key() – the documentation for which says “Lowercase
   alphanumeric characters, dashes and underscores are allowed” – so it’s clearly
   not appropriate to sanitize full text input with spaces, quotes and all sorts.
   But that may not be what’s going on – and I certainly couldn’t fix it myself.
 * Hope that’s useful
    Rich
 * [http://wordpress.org/plugins/simplr-registration-form/](http://wordpress.org/plugins/simplr-registration-form/)

The topic ‘Quote escaping errors in fields’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simplr-registration-form_be8c38.svg)
 * [Simplr Registration Form Plus+](https://wordpress.org/plugins/simplr-registration-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simplr-registration-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simplr-registration-form/)
 * [Active Topics](https://wordpress.org/support/plugin/simplr-registration-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simplr-registration-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simplr-registration-form/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [richplane](https://wordpress.org/support/users/richplane/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/quote-escaping-errors-in-fields/)
 * Status: not resolved