Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须在成功消息中插入一个锚标记。显示消息时,Magento 会去除 html。
有解决方法吗?
任何帮助将非常感激。
Flag Mage_Core_Block_Messages::$_escapeMessageFlag defines if to use htmlEscape() method with the message text, so you can set up your rule for the selected path.
Mage::app()->getLayout()->getBlock('messages')->setEscapeMessageFlag(false);