yii2 formatter 中 html 和 raw 的区别

Html:

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

Raw

未对数据进行净化

猜你喜欢

转载自www.cnblogs.com/Mr-Hawaii-Felix/p/9982589.html
今日推荐