How to replace html quote code with plain text quotes in placeholder text in a Drupal site.

weknowjack
weknowjack used Ask the Experts™
on
A placeholder in a form on a Drupal site shows
Please type 'human ' here.
instead of
Please type 'human' here.
How would we fix that?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hi,

Check your template code, do you have this meta? (maybe this meta is missing or you are using something else)
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

Open in new window


For a quick fix try to replace  
&#039; 

Open in new window

in your code by this this is another kind of apostrophe that should not cause problem, I often replace ' by  ’ in my french application to prevent issues.
Or simply remove the
&#039;

Open in new window

in your code if the apostrophe are not important in your placeholder.

Author

Commented:
This is a Drupal site and I don't know what file the code is in. This is managed currently through the admin. In the admin I enter 'human' but the site displays the other.
You seem to be able to edit the placeholder from the admin side
If yes, just change  
'human'

Open in new window

 to
 human

Open in new window

' is the same as  &#039;

Open in new window

and for a reason or another it's not render correctly
so removing the ' this will fix the problem

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial