Просмотр исходного кода

#605 bx_linkify should ignore errors in bad html

Alex Trofimov 9 лет назад
Родитель
Сommit
4282585c2b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      inc/utils.inc.php

+ 1 - 1
inc/utils.inc.php

@@ -1499,7 +1499,7 @@ function bx_linkify_html($sHtmlOrig, $sAttrs = '')
 
     foreach ($xpath->query('//text()') as $text) {
         $frag = $dom->createDocumentFragment();
-        $frag->appendXML(bx_linkify($text->nodeValue, $sAttrs, true));
+        @$frag->appendXML(bx_linkify($text->nodeValue, $sAttrs, true));
         $text->parentNode->replaceChild($frag, $text);
     }