我在试着设置一些<span>
bloginfo描述中的标记。所以我把这个放在博客描述字段中:
<span class="name">Archive | Navarro Vives</span> <span>is a point of reference</span> <span>for those who wish to</span> <span>find out more about the life and work of Josep Navarro Vives.</span>
bloginfo(\'description\')
返回此字符串:
<span class="name">Archive | Navarro Vives</span> <span>is a point of reference</span> <span>for those who wish to</span> <span>find out more about the life and work of Josep Navarro Vives.</span>
并在浏览器中打印为
<span class="name">Archive | Navarro...etc
(带转义标记)。
我试图:
$description = bloginfo(\'description\');
echo html_entity_decode($description);
但它返回的结果与bloginfo(“description”)完全相同。
我怎样才能摆脱这些<span>
标签?