# PlainText::detectHtml()

URL: https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/detecthtml/
Проверено на 1С-Битрикс 25.x, обновлено 03.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией 1С-Битрикс.

Класс: [`\Bitrix\DocumentGenerator\Body\PlainText`](https://chugunov.pro/api-bitrix/documentgenerator/body/plaintext/)
Модуль: DocumentGenerator.
Свойства элемента: method, public, static.

## Сигнатура

```php
public static detectHtml(string $string) : bool
```

## Параметры

- `$string` `string` — обязательный

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

`bool`

Оригинал в официальной документации: https://docs.1c-bitrix.ru/api/classes/Bitrix-DocumentGenerator-Body-PlainText.html
