Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
xmlconverter.php
1<?php
2namespace Bitrix\Main\Text;
3
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}
static encode($string, $flags=ENT_COMPAT, $doubleEncode=true)
encode($text, $textType="")
decode($text, $textType="")