]> git.wh0rd.org Git - tt-rss.git/commitdiff
place the #357 comment to the correct instance of saveXML(), cleanup old version...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 27 Dec 2012 16:35:13 +0000 (20:35 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 27 Dec 2012 16:35:13 +0000 (20:35 +0400)
include/functions.php

index 6dc49445451b4bb7174046d64fe2291d2e873252..f0bd31831ab22d76ec18f3b16c133adf0beda350 100644 (file)
 
                $node = $doc->getElementsByTagName('body')->item(0);
 
+               // http://tt-rss.org/redmine/issues/357
                return $doc->saveXML($node, LIBXML_NOEMPTYTAG);
        }
 
 
        }
 
-/*     function rewrite_urls($line) {
-               global $url_regex;
-
-               $urls = null;
-
-               $result = preg_replace("/((?<!=.)((http|https|ftp)+):\/\/[^ ,!]+)/i",
-                       "<a target=\"_blank\" href=\"\\1\">\\1</a>", $line);
-
-               return $result;
-       } */
-
        function rewrite_urls($html) {
                libxml_use_internal_errors(true);
 
                $node = $doc->getElementsByTagName('body')->item(0);
 
                // http://tt-rss.org/forum/viewtopic.php?f=1&t=970
-               // http://tt-rss.org/redmine/issues/357
                if ($node)
                        return $doc->saveXML($node, LIBXML_NOEMPTYTAG);
                else