asHtml() public method
Formats the value as HTML text.
The value will be purified using yii\helpers\HtmlPurifier to avoid XSS attacks. Use asRaw() if you do not want any purification of the value.
public string asHtml ( $value, $config = null ) | ||
---|---|---|
$value | string |
The value to be formatted. |
$config | array|null |
The configuration for the HTMLPurifier class. |
return | string |
The formatted result. |
Please login to continue.