Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

htmlspecialchars ampersand

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

The above prints out as: Details &amp; Documents

What is the proper syntax so that it prints as: Details & Documents?

Thanks

like image 825
vulgarbulgar Avatar asked Dec 22 '11 17:12

vulgarbulgar


1 Answers

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.

like image 71
Bojangles Avatar answered Sep 25 '22 11:09

Bojangles