method public static

Xml::detectHtml()

Класс: \Bitrix\DocumentGenerator\Body\Xml

Сигнатура

public static detectHtml(string $string) : bool

Параметры

$string string

Возвращаемое значение

bool

Как применяется в Xml

Xml::detectHtml() — метод класса \Bitrix\DocumentGenerator\Body\Xml модуля «Генератор документов».

Статический метод — вызывается через имя класса Xml, без создания объекта.

use Bitrix\Main\Loader;
use Bitrix\DocumentGenerator\Body\Xml;

Loader::includeModule('documentgenerator');

$string = '';
$result = Xml::detectHtml($string);
// $result: bool

Другие методы Xml

detectHtml() есть и у других классов модуля «Генератор документов»: Body, Docx, DocxXml, PlainText, ZipDocument.

Исходный файл: source/documentgenerator/lib/body/xml.php:537

Что будем искать? Например,Продвижение