encode
public static \Bitrix\Main\Text\HtmlFilter::encode( string $string, string $flags = "ENT_COMPAT" );
Static method converts special characters into safe HTML entities.
Parameters
Parameter | Description | Version |
---|---|---|
$string | Converted string. | |
$flags | Flag, specifying processing of quote marks, incorrect code sequences, and used document type. Uses by default - ENT_COMPAT . |
Example
© «Bitrix24», 2001-2024
Up