# danog\MadelineProto\EventHandler\Message\Entities\TextWithEntities: 

[Back to index](../../../../../index.html)

> Author: Daniil Gentili <daniil@daniil.it>  
  

  



## Properties
* `$text`: `string` Text
* `$entities`: `list<MessageEntity>` Message entities for styled text.
* `$parseMode`: `?danog\MadelineProto\ParseMode` Whether to parse HTML or Markdown markup in the message

## Method list:
* [`__construct(string $text, array $entities, ?\danog\MadelineProto\ParseMode $parseMode)`](#__construct)
* [`getHTML(bool $allowTelegramTags = false): string`](#getHTML)

## Methods:
### <a name="__construct"></a> `__construct(string $text, array $entities, ?\danog\MadelineProto\ParseMode $parseMode)`




Parameters:

* `$text`: `string`   
* `$entities`: `array`   
* `$parseMode`: `?\danog\MadelineProto\ParseMode`   


#### See also: 
* [`\danog\MadelineProto\ParseMode`: Indicates a parsing mode for text.](../../../../../danog/MadelineProto/ParseMode.html)




### <a name="getHTML"></a> `getHTML(bool $allowTelegramTags = false): string`

Get an HTML version of the message.


Parameters:

* `$allowTelegramTags`: `bool` Whether to allow telegram-specific tags like tg-spoiler, tg-emoji, mention links and so on...  



---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
