helpers\HtmlPurifier

Class yii\helpers\HtmlPurifier

Inheritance yii\helpers\HtmlPurifier » yii\helpers\BaseHtmlPurifier
Available since version 2.0
Source Code https://github.com/yiisoft/yii2/blob/master/framework/helpers/HtmlPurifier.php

HtmlPurifier provides an ability to clean up HTML from any harmful code.

Basic usage is the following:

echo HtmlPurifier::process($html);

If y