The CI db library automatically converts my data into htmlspecialchars. I want it to be automatically decoded during output. Is it possible? I don't want to end up changing every $row->column
to htmlspecialchars_decode($row->column)
.
在输出上自动解码htmlspecialchars
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- dpr26232 2016-04-01 18:25关注
The CI DB classes don't do anything like that. You most likely have
$config['global_xss_filtering']
enabled ...Just disable that setting; it's deprecated since CodeIgniter 3.0.0, so you shouldn't be using it anyway.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报