2

我必须在成功消息中插入一个锚标记。显示消息时,Magento 会去除 html。

有解决方法吗?

任何帮助将非常感激。

4

1 回答 1

4

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);
于 2013-01-08T11:43:06.543 回答