WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When i put special characters in text field on wordpress themes option then it's gonna add some slash characters Like if I put


then its show


How i solve that?

share|improve this question
are you trying to add the characters to a word in a php file? – Androliyah Mar 14 '13 at 20:08
No, I'm trying on themes option panel. Maybe this option panel does not sanitize special characters. – Tawhidul Islam Mar 14 '13 at 20:18
Can you screenshot it? I cant picture your dillema. – Androliyah Mar 14 '13 at 20:20
How do you save the options? Add the code to your question. – toscho Mar 14 '13 at 20:28

You need to escape the apostrophe yourself. Two ways to escape apostrophes is to do this:


Or this:


If you do not escape them yourself, you likely end up with the problem you're having now. So try one of these methods in your options panel text box and see if that answers your question.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.