开发者

Drupal: character entity in menu link title

开发者 https://www.devze.com 2023-02-11 15:59 出处:网络
I have a menu link whose link title contains a character entity (e.g. La Niña). However, Drupal isn\'t recognising the character entity and is further encoding the ampersand, so I\'m endin开

I have a menu link whose link title contains a character entity (e.g. La Niña). However, Drupal isn't recognising the character entity and is further encoding the ampersand, so I'm endin开发者_StackOverflowg up with La Niña. How do I fix that?


You can override themable output in your theme template.php file or in a custom module.

Basicaly, the point is that the l() function isn't called with the "html" option in theme_menu_link

See http://api.drupal.org/api/drupal/includes--common.inc/function/l/7 and http://api.drupal.org/api/drupal/includes--menu.inc/function/theme_menu_link/7

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号