$this->styles
[$key] =
clone $value;
} } /**
* Escapes "<" and ">" special chars in given text.
*/
public static function escape(string
$text): string
{ $text =
preg_replace('/([^\\\\]|^)([<>])/', '$1\\\\$2',
$text);
return self::
escapeTrailingBackslash($text);
} /**
* Escapes trailing "\" in given text.
*
* @internal
*/
public static function escapeTrailingBackslash(string
$text): string
{ if (str_ends_with($text, '\\'
)) { $len = \
strlen($text);