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.
Hi,
Because menu title could sometime being already escaped with check_plain title callback, it should not always being done.
See _menu_item_localize().
Here is a patch.
Thanks
Comment | File | Size | Author |
---|---|---|---|
#4 | Screen Shot 2014-12-30 at 12.11.27 PM.png | 28.07 KB | kyletaylored |
#1 | 2375205-breadcrumb_title-1.patch | 484 bytes | chaby |
Comments
Comment #1
chaby CreditAttribution: chaby commentedComment #2
kyletaylored CreditAttribution: kyletaylored commented@Chaby, could you post an example module we can test this use-case against? I just want to confirm it before it's committed.
Thanks!
Comment #3
chaby CreditAttribution: chaby commented@kyletaylored, with node module, create a content type with a label/title like "l'éléphant PHP". Then go to node/add/CONTENT_TYPE and see the breadcrumb title.
Comment #4
kyletaylored CreditAttribution: kyletaylored commentedYep, I can confirm this issue. It can also be explained under _menu_item_localize(). It's not just if it's empty, but if it's set to true, to verify the callback is check_plain.
Fixed!