summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-12-27 20:35:13 +0400
committerAndrew Dolgov <[email protected]>2012-12-27 20:35:13 +0400
commitc5bb0440d36a41df615ac03e2d05ef9b8638f280 (patch)
treed9249463d1d4c205eaa6166bfe34a3ccc94d5b3d /include
parente9c04fd4e33e4b4da7109b4a4241629416ecd336 (diff)
place the #357 comment to the correct instance of saveXML(), cleanup old version of rewrite_urls()
Diffstat (limited to 'include')
-rw-r--r--include/functions.php13
1 files changed, 1 insertions, 12 deletions
diff --git a/include/functions.php b/include/functions.php
index 6dc494454..f0bd31831 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -2575,6 +2575,7 @@
$node = $doc->getElementsByTagName('body')->item(0);
+ // http://tt-rss.org/redmine/issues/357
return $doc->saveXML($node, LIBXML_NOEMPTYTAG);
}
@@ -4675,17 +4676,6 @@
}
-/* 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);
@@ -4726,7 +4716,6 @@
$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