[VkBridge] Convert special HTML entities to characters in pageName

This commit is contained in:
Eugene Molotov 2018-03-17 13:38:10 +05:00
parent 159b00145d
commit d583b0c974

View File

@ -45,7 +45,7 @@ class VkBridge extends BridgeAbstract
$text_html = iconv('windows-1251', 'utf-8', $text_html); $text_html = iconv('windows-1251', 'utf-8', $text_html);
$html = str_get_html($text_html); $html = str_get_html($text_html);
$pageName = $html->find('.page_name', 0)->plaintext; $pageName = $html->find('.page_name', 0)->plaintext;
$this->pageName = $pageName; $this->pageName = htmlspecialchars_decode($pageName);
foreach ($html->find('.post') as $post) { foreach ($html->find('.post') as $post) {