WordPress help! How to remove backslahes from input field?

January 23rd, 2020

I’m in the midst of developing my own new theme for my site Double Dance (new theme here: http://cool.doubledance.ca/2/, tell me what you think!) based on what I know from hacking other themes, and I need help with the custom theme admin panel I’ve designed for it.
Basically, in my text boxes in the backend, when I enter text in to them and hit Save, they are returned with \s in front of the “s
I’m not really that familiar with PHP, so I did some research and learned about htmlspecialchars and htmlentities, but I just don’t know how to implement them properly. Here’s what I tried…
echo htmlentities($value['std']);
and a bunch of other variations of it. Could someone please enlighten me on my problem? Everything in the admin panel for my theme works fine, except for those backslahes… I guess it’s kind of hard to assess my problem without seeing what I’m working with… if someone really thinks they can help me out, let me know and I’ll lend you the source to work with.
Other than that, anyone got any suggestions?
Links Coded. Please remember to double check that all your links have been coded -
#3.10 All links must be coded - including, but not limited to, e-mail addresses, passwords and internal links.

Answer #1
Can no one help me with this problem?

 

| Sitemap |