Escape text for different parse_modes
mode parameter can be : MarkdownV2 , Markdown , HTML , default : parseMode::HTML(HTML)
| Name | Type | Description | Required |
|---|---|---|---|
| text | string | Your text e.g. => 'hello men! *I* Have nothing anymore' | yes |
| mode | string | Your selected mode e.g. => `parseMode::HTML` | `HTML` | no |
Output : string | false
Static or normal : Static
tools::modeEscape('hello men! *I* Have nothing anymore');