Bitrix-D7  20.0.0
xmlconverter.php
См. документацию.
1 <?php
2 namespace Bitrix\Main\Text;
3 
4 class XmlConverter extends Converter
5 {
6  public function encode($text, $textType = "")
7  {
8  if (is_object($text))
9  return $text;
10 
11  return HtmlFilter::encode($text);
12  }
13 
14  public function decode($text, $textType = "")
15  {
16  if (is_object($text))
17  return $text;
18 
19  return htmlspecialchars_decode($text);
20  }
21 }
Bitrix\Main\Text\XmlConverter\encode
encode($text, $textType="")
Definition: xmlconverter.php:6
Bitrix\Main\Text\Converter
Definition: main/lib/text/converter.php:4
Bitrix\Main\Text\XmlConverter\decode
decode($text, $textType="")
Definition: xmlconverter.php:14
Bitrix\Main\Text
Definition: base32.php:2
Bitrix\Main\Text\HtmlFilter\encode
static encode($string, $flags=ENT_COMPAT)
Definition: htmlfilter.php:12
Bitrix\Main\Text\XmlConverter
Definition: xmlconverter.php:4