Wordpress - Problem w/ Backslashes & Apostrophes

3 replies
A user is trying to enter an apostrophe into a custom field and they are getting a bunch of backslashes instead.

Anyone know how to fix this??

TIA, Nick
#apostrophes #backslashes #problem #w or #wordpress
  • Profile picture of the author KirkMcD
    You need to fix the plugin that is pulling in the data so that it will "strip slashes"
    {{ DiscussionBoard.errors[6937077].message }}
  • Profile picture of the author kevinclanton
    It might be worth trying to preceed the apostrophe with a \ (so it would look like don\'t )
    It isn't likely that it will work but if fixing the theme/plugin isn't and option it is worth a shot.
    {{ DiscussionBoard.errors[6937162].message }}
  • Profile picture of the author wipeoutmedia
    What Kirk and Kevin said is right. Another thing you could try in the meantime is use a HTML ASCII character for an apostrophe, which is this:
    '
    I know this is not ideal.
    Signature
    Start your engines WordPress folks for the most powerful, most flexible, most re-usable, and only CSS & JavaScript plugin you will ever need. With enough muscle to easily allow rich customisations and modifications to your WordPress blog, CJT is a must have for self-taught WordPress web-masters to experienced WordPress developers. http://css-javascript-toolbox.com
    {{ DiscussionBoard.errors[6938177].message }}

Trending Topics