Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Yii フレームワークのテーブルのアクティブ レコード モデルがあります。そして、このテーブルの 1 つのフィールドのフォームにテキストエリアを用意します。
XSS攻撃から保護するために、モデルクラスのルール関数でどのルールを設定できますか?
「通常の」PHP セキュリティ手順に従って、XSS 攻撃を防ぐことができます。しかし、Yii のセキュリティに関する次の投稿を見てください。