gpt4 book ai didi

php - htmlspecialchars 符号

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:36:31 25 4
gpt4 key购买 nike

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

上面的打印输出为:Details &文档

什么是正确的语法才能打印为:Details & Documents

谢谢

最佳答案

html_entity_decode应该做你想做的:

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

尽管可能有针对此的 Magento 特定设置。

关于php - htmlspecialchars 符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8607900/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com