// $Text = mb_convert_encoding($Text, "UTF-8", 'HTML-ENTITIES');
//}
+ // Remove all hashtag addresses
+ if (!$tryoembed) {
+ $pattern = '/#<a.*?href="(.*?)".*?>(.*?)<\/a>/is';
+ $Text = preg_replace($pattern, '#$2', $Text);
+ }
+
call_hooks('bbcode',$Text);
$a->save_timestamp($stamp1, "parser");
$message = str_replace("\r", "", $html);
+ // replace all hashtag addresses
+ $pattern = '/#<a.*?href="(.*?)".*?>(.*?)<\/a>/is';
+ $message = preg_replace($pattern, '#$2', $message);
+
$doc = new DOMDocument();
$doc->preserveWhiteSpace = false;