Class craft\helpers\HtmlPurifier
- Inheritance
- craft\helpers\HtmlPurifier » yii\helpers\HtmlPurifier » yii\helpers\BaseHtmlPurifier
- Available since version
- 3.0
- Source Code
- https://github.com/craftcms/cms/blob/master/src/helpers/HtmlPurifier.php
HtmlPurifier provides an ability to clean up HTML from any harmful code.
Method | Description | Defined By |
---|---|---|
cleanUtf8() |
craft\helpers\HtmlPurifier | |
configure() |
Allow the extended HtmlPurifier class to set some default config options. | craft\helpers\HtmlPurifier |
convertToUtf8() |
craft\helpers\HtmlPurifier | |
process() |
Passes markup through HTMLPurifier making it safe to output to end user. | yii\helpers\BaseHtmlPurifier |
Method Details
cleanUtf8()
public static method
#
public static string cleanUtf8 ( \craft\helpers\string $string )
$string |
string |
configure()
public static method
#
Allow the extended HtmlPurifier class to set some default config options.
public static void configure ( $config )
$config |
\HTMLPurifier_Config |
convertToUtf8()
public static method
#
public static string convertToUtf8 ( \craft\helpers\string $string, \HTMLPurifier_Config $config )
$string |
string | |
$config |
\HTMLPurifier_Config |