# Problem with sending notification when message contains HTML/code and a lot of escaping

**URL:** <https://meta.discourse.org/t/problem-with-sending-notification-when-message-contains-html-code-and-a-lot-of-escaping/96260>\
**Category:** Product Support\
**Tags:** chat-integration\
**Created:** [3 בספטמבר,‏ 2018,‏ 11:41am UTC](https://meta.discourse.org/t/problem-with-sending-notification-when-message-contains-html-code-and-a-lot-of-escaping/96260 "2018-09-03T11:41:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mkpankov](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@mkpankov](https://meta.discourse.org/u/mkpankov)\
**Post date:** [3 בספטמבר,‏ 2018,‏ 11:41am UTC](https://meta.discourse.org/t/problem-with-sending-notification-when-message-contains-html-code-and-a-lot-of-escaping/96260/1 "2018-09-03T11:41:55Z")

</div>

I’ve got this error:

```
{
  "error_key": null,
  "message": {
    "chat_id": "@rustycrate",
    "text": "<b>Chikirev Sirguy @cheblin</b> posted in <a href=\"https://forum.rustycrate.ru/t/pochemu-oshibka-conflicting-implementation-for/521/1\">Почему ошибка conflicting implementation for</a>\n\n<pre>struct XX(i32);\n\nuse ::std::io::*;\n\nmod a {\n use ::std::io::*;\n \n pub fn s() {} /// same function name\n \n impl ::std::io::Read for super::XX {\n fn read(&mut self, buf: &mut [u8]) -> Result<usize> {\n unimplemented!()\n }\n }\n}\n\nmod b {\n use ::std::io::*;\n \n pub fn s() {} /// same function name\n \n\n\n impl ::std::io::Read for super::XX {\n ...</pre>",
    "parse_mode": "html",
    "disable_web_page_preview": true
  },
  "response_body": {
    "ok": false,
    "error_code": 400,
    "description": "Bad Request: can't parse entities: Expected end tag at byte offset 412"
  }
}

```

I think the reason is `message.text` that has a lot of markup and escaping.

---

_[View the full topic](https://meta.discourse.org/t/problem-with-sending-notification-when-message-contains-html-code-and-a-lot-of-escaping/96260)._
