yii2 formatter 中 html 和 raw 的区别

Html:

对数据进行净化,避免XSS攻击

Raw

未对数据进行净化

posted @ 2021-07-28 16:22  MeetU  阅读(56)  评论(0编辑  收藏  举报