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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MGN’s picture

Status: Active » Fixed

Thanks. The fix has now been committed to 7.x-1.x-dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

blenny’s picture

custom breadcrumb pancakes?uid=[node:author:name] becomes pancakes%3Fuid%3Dadmin. Was the fix supposed to correct this or am I doing something wrong?

RedTop’s picture

Status: Closed (fixed) » Active

Issue seems only partially fixed, [node:title] shows "&" in breadcrumb after fix but still links to &AMP, breaking the link...

both 7.x-1.x-dev and 7.x-2.x-dev

Apologies, 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.

RedTop’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev

closing again.

raychaser’s picture

Version: 7.x-2.x-dev » 7.x-1.0-alpha1
Priority: Normal » Minor
Status: Active » Closed (fixed)
FileSize
754 bytes

We're not quite ready to upgrade to a dev version and we just need the HTML entity decode so here is that patch.

realityloop’s picture

Cleaner patch due to hunk failure with patch from #6

klidifia’s picture

I have just left everything as is and on page.tpl.php have decoded it there like so: