When you retrieve the data make sure to call stripslashes, or stripslashes_deep if it’s an array.
$name = stripslashes($name);
Related Posts:
- Is ‘# -*- coding: utf-8 -*-‘ also a comment in Python?
- What is the difference between UTF-8 and Unicode?
- Byte and char conversion in Java
- What is “=C2=A0” in MIME encoded, quoted-printable text?
- Strange characters – despite everything being UTF-8
- One for the gurus: upgrade to 3.x messed up only filenames with accented chars
- Word press replacing unicode characters with “?”s
- How to set charset for wp_remote_post request?
- Outputting post title without encoding
- Apostrophes showing up as ΓÇÖ after converting from Windows to Linux
- WordPress content shows this character ​​
- Symbols such as £ end up being  in the database
- Fix encoding ’ [closed]
- Getting Non-printable characters were found while entering Euro Symbol
- Question mark on special chars
- Encoding Issue while using French in WordPress
- Get ?? for unicode characters
- WordPress theme character encoding issue
- character encoding problem in custom template
- restored old database now some characters have changed?
- WordPress plugin problem with encoding
- Post removes any text from post that’s following special characters
- UTF-8 Characters in URL – IE problem
- WordPress Dashboard Characters Messed Up
- How to make sure the letters ‘pez’ do not convert to a fish symbol? [closed]
- Problem some Persian texts show in ISO-8859-5
- What character encoding is >?
- How to replace � in a string
- Does “\d” in regex mean a digit?
- What is base 64 encoding used for?
- Python – Reading and writing csv files with utf-8 encoding
- how to convert negative hexadecimal to decimal
- I have a string with “\u00a0”, and I need to replace it with “” str_replace fails
- “Unmappable character for encoding UTF-8” error
- Using unicode character u201c
- URL Encoding Issue %3D instead of (=)
- C# Encoding a text string with line breaks
- If a hacker changed the blog_charset to UTF-7 does that make WordPress vulnerable to further attacks?
- Character encoding issue after changing servers
- Add whitespace between Chinese and other letters
- WordPress Database Charset/Collate
- Why WP encodes UNICODE (UTF8) containing urls? Any drawbacks of UNICODE url?
- do_settings_sections() doesn’t escape quotes
- Allowing non-latin characters in registration
- JSON not valid after json_encode posts
- Non-Latin Characters in permalinks
- How to increase the character limit for post name of 200?
- Faulty restore of the database, encoding issue
- How to encode post content as JSON?
- What is wp_check_invalid_utf8?
- Custom DB_COLLATE (collation) value not working on fresh install?
- What is WordPress file encoding?
- add_rewrite_rule not working for language specific characters
- Query string becomes encoded when a static page is used as homepage
- Text cut off after the character 𪇆 in TinyMCE
- Site Rss not seen by browser
- WordPress problem with htmlentities
- Emojis getting converted to “?”
- Unexpected = (equal sign) characters in wp mail
- urlencode query string in gravity forms confirmation redirect
- HTML Entities displaying improperly as malformed escaped code
- How to get my post title to work with an apostrophe (‘s)?
- Editing URL character replacement
- Return encoded Page Title outside of a loop
- How to properly encode url with parameters for redirect_to
- Avoid glitchy characters – my own version of the problem
- Adding inline JavaScript encoding issue
- copying text from ms word to wordpress post appears weird [closed]
- images not showing after transfer
- Unicode characters displaying as ? after import using WP Clone
- How to use Japanese characters for a single page
- esc_js() breaks unicode sequences by removing the slash ‘\’ character
- Post editor loads empty
- UTF8 Encoding problems when exporting posts
- Images are not showing after moving WordPress installation from server to localhost?
- Problems character encoding for pages in multiple languages
- UTF-32be error WordPress
- Blank spaces show as a question mark
- Function to replace comment’s accented characters before posting
- Outputting HTML elements through WP-API
- WordPress site stopped working after simply opening header.php in the wp-admin editor
- Problem with UTF8. italian/russian characters
- How to automatically convert “%” and “+” in image urls on upload
- Problems with wierd characters and my plugin
- Special characters in post_title replaced by ‘?’
- Plugin won’t output characters with diacritics properly
- French accented text replaced with ? in woocommerce product list
- How to encode correclty an url with the char “&” for an email?
- Character encoding issue – black diamond question marks on imported post excerpts
- Theme-based character encoding issue
- Strange special character/Latin characters
- Search terms in other language turns out to question mark and symbols
- Migrating a WordPress site has broken UTF8 encoding
- Control character encode after using jquery autocomplete
- filter wptexturize doesn’t work on old posts titles
- Plugin error on activation – breaks page encoding and prints the code of plugin php files
- Admin encoding problem
- Multisite   wrong encoding problem
- WordPress v3.1 Has Character Encoding Issue With Title/Permalink?
- wordpress shortcode url decode non Latin character