Friday, March 17, 2006

Allowing extended characters in Drupal Menus

By default Drupal escapes all text that it places in menus. To allow extended characters, eg © or ™, use this minor tweak:
Drupal version 4.6.6
File: /includes/menu.inc
Line 608:
change return l($item['title'], $link_item['path'], array_key_exists('description', $item) ? array('title' => $item['description']) : array());
to return l($item['title'], $link_item['path'], array_key_exists('description', $item) ? array('title' => $item['description']) : array(),NULL,NULL,NULL,TRUE);
Enjoy!

No comments:

Post a Comment