X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fhtml2plain.php;h=ed338ce71002672c6fbf217941e98eba125efc96;hb=737e40b4d9cb363eee831074b9c560bdbbdeba79;hp=f09087e0b0179fab68fb4e42328ba5037dbabf61;hpb=64946972b2004b0b8252da670d0e990143a40b77;p=friendica.git diff --git a/include/html2plain.php b/include/html2plain.php index f09087e0b0..ed338ce710 100644 --- a/include/html2plain.php +++ b/include/html2plain.php @@ -49,7 +49,7 @@ function quotelevel($message, $wraplength = 75) $newlines = array(); $level = 0; - foreach($lines as $line) {; + foreach ($lines as $line) {; $line = trim($line); $startquote = false; while (strpos("*".$line, '[quote]') > 0) { @@ -113,12 +113,6 @@ function html2plain($html, $wraplength = 75, $compact = false) $message = str_replace("\r", "", $html); - // replace all hashtag addresses -/* if (get_config("system", "remove_hashtags_on_export")) { - $pattern = '/#(.*?)<\/a>/is'; - $message = preg_replace($pattern, '#$2', $message); - } -*/ $doc = new DOMDocument(); $doc->preserveWhiteSpace = false; @@ -239,4 +233,3 @@ function html2plain($html, $wraplength = 75, $compact = false) return(trim($message)); } -?>