[VkBridge] Ignore illegal characters in input html for iconv (#1154)
This commit is contained in:
parent
1814116d67
commit
b0a780acda
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class VkBridge extends BridgeAbstract
|
||||||
$text_html = $this->getContents()
|
$text_html = $this->getContents()
|
||||||
or returnServerError('No results for group or user name "' . $this->getInput('u') . '".');
|
or returnServerError('No results for group or user name "' . $this->getInput('u') . '".');
|
||||||
|
|
||||||
$text_html = iconv('windows-1251', 'utf-8', $text_html);
|
$text_html = iconv('windows-1251', 'utf-8//ignore', $text_html);
|
||||||
// makes album link generating work correctly
|
// makes album link generating work correctly
|
||||||
$text_html = str_replace('"class="page_album_link">', '" class="page_album_link">', $text_html);
|
$text_html = str_replace('"class="page_album_link">', '" class="page_album_link">', $text_html);
|
||||||
$html = str_get_html($text_html);
|
$html = str_get_html($text_html);
|
||||||
|
|
Loading…
Reference in a new issue