This commit is contained in:
Daniil Gentili 2018-03-02 23:24:19 +00:00
commit ec0a5e4190

View File

@ -414,7 +414,6 @@ trait BotAPI
if (preg_match('/html/i', $arguments['parse_mode'])) { if (preg_match('/html/i', $arguments['parse_mode'])) {
$new_message = ''; $new_message = '';
$arguments['message'] = $this->html_fixtags($arguments['message']); $arguments['message'] = $this->html_fixtags($arguments['message']);
$dom = new \DOMDocument(); $dom = new \DOMDocument();
$dom->loadHTML(mb_convert_encoding($arguments['message'], 'HTML-ENTITIES', 'UTF-8')); $dom->loadHTML(mb_convert_encoding($arguments['message'], 'HTML-ENTITIES', 'UTF-8'));