In my opinion MenuManager should not convert text into HTML entities.
line: 219, file: /modules/menumanager/MenuManager.module.php
I think this decision should be left for the content editor, or there should be a possibility to switch of this option.
Here is the trouble I am having with it:
I need to add a "registered trademark" ® sign in the "Menu Text" / $node->menutext .
Moreover, I want this sign to be displayed as html entity: ®
If in ADMIN I enter:
Menu Text: Text ®
The frontend output is "Text ®"
View html source - "Text ®" / it converts "&"
If I enter:
Menu Text: Text ®
The frontend output is "Text ®"
View html source - "Text ®"
Currently I solved this problem by using {$node->menutext|regex_replace:"/®/":"®"}
in the menu template.
If MenuManager would use proper php "htmlentities" function, maybe it would be a better solution than to use "my_htmlentities" from CMS.
I am using the newest CMSMS v1.2, MenuManager v1.5
Bug of MenuManager output in the frontend when using ®
- alinome.net
- Forum Members
- Posts: 124
- Joined: Thu Jan 25, 2007 2:54 pm
- Location: España / Hispanujo / Spain
Re: Bug of MenuManager output in the frontend when using ®
I agree. I have a similar problem with MenuManager and some CMSMS tags:Augustas wrote: In my opinion MenuManager should not convert text into HTML entities.
line: 219, file: /modules/menumanager/MenuManager.module.php
I think this decision should be left for the content editor, or there should be a possibility to switch of this option.
http://forum.cmsmadesimple.org/index.php/topic,17264.0.html
Marcos Cruz