Documentation

ApplyHtmlSpecChars

 void CBXSanitizer::ApplyHtmlSpecChars(
 bool bApply = true
)

The method applies or deletes the class setting specifying to apply function htmlspecialchars to plain text and tags not included into the whitelist.

The method returns nothing.

CBXSanitizer::ApplyHtmlSpecChars() мcan be called only as the initialized object method and not as static method of CBXSanitizer class.

Parameters

ParameterDescription
bApplyBoolean parameter, true or false values.

Example

  $Sanitizer->ApplyHtmlSpecChars(true);


© «Bitrix24», 2001-2024
Up