Documentation

encode

public static
\Bitrix\Main\Text\HtmlFilter::encode(
 string $string,
 string $flags = "ENT_COMPAT"
);

Static method converts special characters into safe HTML entities.

Parameters

ParameterDescriptionVersion
$stringConverted string.
$flagsFlag, specifying processing of quote marks, incorrect code sequences, and used document type. Uses by default - ENT_COMPAT.

Example



© «Bitrix24», 2001-2024
Up