Needs work
Project:
Page Title
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2009 at 22:05 UTC
Updated:
2 Sep 2012 at 12:15 UTC
Jump to comment: Most recent file
My site slogan is 'Leaning & Development', however the & is not being being html encoded as &
Page titles with '&' in are correctly encoded.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | page_title-6.x-2.2-fix_html_in_slogan.patch | 379 bytes | peter.walter |
| #6 | page_title-fix_html_in_slogan.patch | 367 bytes | peter.walter |
Comments
Comment #1
peter.walter commentedFirst line should have read
'My site slogan is 'Leaning & Development', however the & is not being being html encoded as &
Comment #2
nicholasthompsonI'll take a look - thanks.
Comment #3
nicholasthompsonFixed in commit http://drupal.org/cvs?commit=195366
Will be in DRUPAL-6--2-1
Fix needs porting...
Comment #4
nicholasthompsonFix is present in DRUPAL-5--2 and DRUPAL-6--2... Marking as fixed.
Comment #6
peter.walter commentedNot fully fixed - see patch attached
Comment #7
peter.walter commentedSorry, error in patch file (and can't edit attachments) - this one should be correct
Comment #8
nicholasthompsonI believe that was removed as it has a tendency to double-encode...
Comment #9
peter.walter commentedAh 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.
Comment #10
peter.walter commentedIt'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
Comment #11
13rac1 commentedI'm surprised this problem still exists. I set #1278262: HTML in page title and #1285122: HTML Entities in Title as dupes of this.
I get HTML in the page title simply by enabling this module.
Comment #12
dgastudio commentedsame here