Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: peter.walter commentedNot fully fixed - see patch attached
Comment #7
peter.walter CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: dgastudio commentedsame here