TPL 文字显示不完整

浏览:567 发布日期:2013/11/13 分类:求助交流 关键字: TPL 引号
1
展示从数据库获取的内容:
Array
(
[0] => Array
(
[id] => 1
[app_id] => 1
[describe] => 123456
)

[1] => Array
(
[id] => 2
[app_id] => 2
[describe] => this is a test
)

)

2
TPL代码:
<volist>
<input type="hidden" name="firstname" value = {$vo.id} />
<input type="text" name="firstname" value = {$vo.app_id} />
<input type="text" name="firstname" value = {$vo.describe}/>
</volist>

3
结果页面只能显示describe字段的第一段内容,内容 "this is a test app" 如果被空格隔开的话,显示结果就只有"this"

本人尝试了一下 “{$vo.describe}” 外加双引号的方法可以解决这个问题
但是如果存储内容存在单双引号的话可能还会出错
对于这个问题大家都是怎么解决的?
谁有好的建议?
最佳答案
评论( 相关
后面还有条评论,点击查看>>