Site slogan in <title> is not being encoded
expandonline - March 28, 2009 - 22:05
| Project: | Page Title |
| Version: | 6.x-2.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
My site slogan is 'Leaning & Development', however the & is not being being html encoded as &
Page titles with '&' in are correctly encoded.

#1
First line should have read
'My site slogan is 'Leaning & Development', however the & is not being being html encoded as &
#2
I'll take a look - thanks.
#3
Fixed in commit http://drupal.org/cvs?commit=195366
Will be in DRUPAL-6--2-1
Fix needs porting...
#4
Fix is present in DRUPAL-5--2 and DRUPAL-6--2... Marking as fixed.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.
#6
Not fully fixed - see patch attached
#7
Sorry, error in patch file (and can't edit attachments) - this one should be correct
#8
I believe that was removed as it has a tendency to double-encode...
#9
Ah yes - it does double encode the node title, but require this patch to get the site slogan (as defined in the original issue at the top) to encode properly.
#10
It's a hacked solution, but I can get the script to encode my <title>'s properly by using this as the return at the end of page_title_page_get_title():
447: return check_plain(html_entity_decode(strip_tags($title)));
Peter