string public
\Bitrix\Main\DB\SqlHelper::forSql(
string $value,
integer $maxLength
);
Escapes special characters in a string for use in an SQL statement.
Parameters
ParameterDescriptionVersion
$valueValue to be escaped.
$maxLengthLimits string length if set.
Examples