Htmlspecialchars ampersand

<h3><?php echo $this->__('Details & Documents') ?></h3>

The above produces: Details &amp; Documents

What is the correct syntax to print like Details & Documents:?

thank

+5
source share
1 answer

html_entity_decode should do what you want:

<h3><?php echo html_entity_decode($this->__('Details & Documents')) ?></h3>

Although there may be a Magento-specific setting for this.

+5
source

All Articles