yii2 formatter 中 html 和 raw 的区别

Html:

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

Raw

未对数据进行净化

原文地址:https://www.cnblogs.com/meetuj/p/15071115.html