使用 Smarty V3 创建的选项标记中缺少标签和标题


label and title is missing in option tag created with smarty v3

我到处搜索它,但没有找到任何解决方案。问题是使用 {html_options} 创建的<选项>标签中缺少"标签"和"标题"属性(使用最新smarty_v3生成的 html)

{html_options 值=$ipList 输出=$ipList 选定=$special_note.ip}

输出:

<option value="192.168.1.10">192.168.1.10</option>
<option value="192.168.1.10">192.168.1.10</option>

而在旧版本 (smarty_v2*) 中,它在选项>标签<显示属性>

输出:

<option label="192.168.1.10" value="192.168.1.10" title="192.168.1.10">192.168.1.10</option>
<option label="192.168.1.110" value="192.168.1.110" title="192.168.1.110">192.168.1.110</option>

目前我正在将代码库和数据库升级到最新版本,包括(smarty,mysqli和apache)。我正在寻找解决方案,以便我可以全局处理它,否则我必须为每个 {html_option} 编写 {foreach} 循环

根据当前的文档,html_options似乎不再设置这些属性(http://www.smarty.net/docs/en/language.function.html.options.tpl)。