Apostrophe showing as '
ziggyk - July 15, 2008 - 02:40
| Project: | Members |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Names having a apostrophe like O'Leary show a & # 0 3 9 ; instead of a apostrophe. I put spaces so that it show the characters instead of the apostrophe.

#1
Can anyone help?
#2
Hi, I got stuck on the same problem. At the moment the only method I know of is to parse the text through html_entity_decode().
E.g.
$output .= l(html_entity_decode($node->title, ENT_QUOTES), "node/$node->nid");
This will ensure the quotes are displayed properly but it takes forever to insert it in all the right places.
Please let me know if you find a better way.
#3
I had the same problem with the $head_title variable so in template.php I added the following to the phptemplate_preprocess_page() function:
$vars['head_title'] = html_entity_decode($vars['head_title'], ENT_QUOTES);It was a lot easier than replacing all instances of the $head_title variable.