vulgarbulgar
vulgarbulgar

Reputation: 844

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

Upvotes: 5

Views: 3193

Answers (1)

Bojangles
Bojangles

Reputation: 101483

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.

Upvotes: 5

Related Questions