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.
Similar to: #691512: Decode HTML entities in title
I have a page title with a single quote ('). When I pull it into a breadcrumb with [current-page:title]
, it is displayed as the HTML entity: '. There does not seem to be a page-title-raw token available, although that was discussed in #691520: Create a [page-title-raw] token and #691512: Decode HTML entities in title.
Comment | File | Size | Author |
---|---|---|---|
#7 | decode_html_entities-1059124-7.patch | 625 bytes | realityloop |
#6 | custom_breadcrumbs-HTML_decode-1059124-6.patch | 754 bytes | raychaser |
Comments
Comment #1
MGN CreditAttribution: MGN commentedThanks. The fix has now been committed to 7.x-1.x-dev.
Comment #3
blenny CreditAttribution: blenny commentedcustom breadcrumb
pancakes?uid=[node:author:name]
becomespancakes%3Fuid%3Dadmin
. Was the fix supposed to correct this or am I doing something wrong?Comment #4
RedTop CreditAttribution: RedTop commentedIssue seems only partially fixed, [node:title] shows "&" in breadcrumb after fix but still links to &, breaking the link...both 7.x-1.x-dev and 7.x-2.x-devApologies, please disregard. My bad for not knowing how to use Custom Breadcrumbs properly. Shouldn't have used [node:title] both as title and path. Silly me.
Comment #5
RedTop CreditAttribution: RedTop commentedclosing again.
Comment #6
raychaser CreditAttribution: raychaser commentedWe're not quite ready to upgrade to a dev version and we just need the HTML entity decode so here is that patch.
Comment #7
realityloopCleaner patch due to hunk failure with patch from #6
Comment #8
klidifia CreditAttribution: klidifia commentedI have just left everything as is and on page.tpl.php have decoded it there like so:
print html_entity_decode($breadcrumb);