以下是Smarty模板文件的内容......
{foreach from=$productcustomfields item=customfield}
<tr>
<td class="fieldarea">{$customfield.name}:</td>
<td>{$customfield.value}</td>
</tr>
{/foreach}
在屏幕上呈现{$ customfield.value}时,该数组值中的任何HTML标记都会在浏览器中显示为纯文本。我怎样才能让Smarty实际呈现HTML标签而不是将它们作为文字文本?
例如,如果$ customfield.value的值为...
<strong>Hello</strong>
在浏览器中看起来就像那样,而不是像 Hello 那样。