aboutsummaryrefslogtreecommitdiffstats
path: root/include/html2plain.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-06-23 21:15:26 +0200
committerMario Vavti <mario@mariovavti.com>2021-06-23 21:15:26 +0200
commitdfcd8395d5aff83b8d6e1fa83346f0f0bd78f879 (patch)
tree5fb84907619bdc02c7434dcf6318bbbae5786dfe /include/html2plain.php
parentcf791a19099e0e4a8a0679e720a4f99755083cca (diff)
parent6e91bee0ba605b938bddf0570e747d6d7be1c712 (diff)
downloadvolse-hubzilla-dfcd8395d5aff83b8d6e1fa83346f0f0bd78f879.tar.gz
volse-hubzilla-dfcd8395d5aff83b8d6e1fa83346f0f0bd78f879.tar.bz2
volse-hubzilla-dfcd8395d5aff83b8d6e1fa83346f0f0bd78f879.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'include/html2plain.php')
-rw-r--r--include/html2plain.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/html2plain.php b/include/html2plain.php
index bf8581bdb..48bbe3d9e 100644
--- a/include/html2plain.php
+++ b/include/html2plain.php
@@ -78,10 +78,10 @@ function quotelevel($message, $wraplength = 75)
function collecturls($message) {
-
+
$pattern = '/<a.*?href="(.*?)".*?>(.*?)<\/a>/is';
preg_match_all($pattern, $message, $result, PREG_SET_ORDER);
-
+
$urls = [];
if ($result) {
$ignore = false;
@@ -104,15 +104,15 @@ function collecturls($message) {
foreach ($list as $listitem)
if (strpos($treffer[1], $listitem) !== false)
$ignore = true;
-
+
if ((strpos($treffer[1], "//plus.google.com/") !== false) and (strpos($treffer[1], "/posts") !== false))
$ignore = false;
-
+
if (! $ignore)
$urls[$treffer[1]] = $treffer[1];
}
}
-
+
return($urls);
}