aboutsummaryrefslogtreecommitdiffstats
path: root/include/html2plain.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-06-18 08:55:49 +0000
committerMario <mario@mariovavti.com>2021-06-18 08:55:49 +0000
commitf4f9ccc3b234eaadf29b3f5c8bec6e19de0aa761 (patch)
treeb87d87381af0299690790ac371d093e5fd8784f7 /include/html2plain.php
parenta84cec4acddf6804a88fcda52e4437c91785dfb2 (diff)
downloadvolse-hubzilla-f4f9ccc3b234eaadf29b3f5c8bec6e19de0aa761.tar.gz
volse-hubzilla-f4f9ccc3b234eaadf29b3f5c8bec6e19de0aa761.tar.bz2
volse-hubzilla-f4f9ccc3b234eaadf29b3f5c8bec6e19de0aa761.zip
css fixes
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);
}