<h3><?php echo $this->__('Details & Documents') ?></h3>
The above prints out as: Details & Documents
What is the proper syntax so that it prints as: Details & Documents
?
Thanks
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.
&
, so it looked like this: & amp;
. Was that a typo, or does your output actually look like that?
Dec 23, 2011 at 0:20
&
in the method$this->__();
?<h3>
-tag,Details & Documents
is the correct output from the function. You're not allowed to have stray ampersands in HTML (or XML, for that matter); that's why&
is used instead.Details & Documents
is correct.Details & Documents
is invalid HTML.