When Menu item contains &, it appears as & in the breadcrumb

Comments

vaibhavjain’s picture

Works as desired.

Can you please provide more info

VanessaM’s picture

When Menu item contains '&', it appears as '&' in the breadcrumb

vaibhavjain’s picture

VanessaM, what is the behavior you are expecting ?
If a character which is entered is shown as is, it is working as desired.

VanessaM’s picture

I was expecting to see: '&' not '&'

vaibhavjain’s picture

StatusFileSize
new2.05 KB

VanessaM,

I am attaching an image, it looks to be good on my end, Can you also upload an screenshot, that would be helpful.

vaibhavjain’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)
Avi.Kumar’s picture

When Menu item contains &, it appears as &amp.
Example:
Menu Item -> Fruits & Vegetables
Breadcrumb will show -> Fruits &-amp; Vegetables
( Note I have added dash after ampersand symbol, to prevent it being interpreted as code)

hem_awalker’s picture

I have a similar issue where an apostrophe ' in the title of a page displays as &#039
My guess is there needs to be a html_entity_decode in there somewhere.

joshua1234511’s picture

Version: 7.x-1.3 » 8.x-1.4
Status: Postponed (maintainer needs more info) » Needs work
StatusFileSize
new6.59 KB

Issue still exits.
When Menu item contains &, it appears as & in the breadcrumb

rphair’s picture

Version: 8.x-1.4 » 7.x-1.3

This doesn't happen from the latest version of Menu Breadcrumb on either D8 or D9, and it didn't happen in version 8.x-1.4 either. We've had web page titles with & in them in our test data from back when this module was in alpha, so it's never been a problem in any 8.x version. Sure it might still be a problem with 7.x but the current maintainer can't reproduce any D7 issues let alone fix them.

Therefore I'm setting the Version back to what it was before the last comment. If the last commenter is seeing this then it's the result of some other module or theme action, not the 8.x version of menu_breadcrumb.

xurizaemon’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Category: Bug report » Support request
Status: Needs work » Fixed

Suggest to take a look at #1827204: special characters such as '&' are double-escaped by twitter_bootstrap_menu_link - should not be sanitizing which was a contemporaneous bug in Bootstrap theme.

Status: Fixed » Closed (fixed)

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