i18n\Formatter asHtml()

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.

doc_Yii
2016-10-30 17:05:58
Comments
Leave a Comment

Please login to continue.