vul*_*gar 5 php character-encoding magento htmlspecialchars
<h3><?php echo $this->__('Details & Documents') ?></h3>
Run Code Online (Sandbox Code Playgroud)
以上打印为: Details & Documents
什么是正确的语法,以便打印为:Details & Documents
?
谢谢
html_entity_decode应该做你想要的:
<h3><?php echo html_entity_decode($this->__('Details & Documents')) ?></h3>
Run Code Online (Sandbox Code Playgroud)
虽然可能有针对此的Magento特定设置.
归档时间: |
|
查看次数: |
2397 次 |
最近记录: |