//}
// Remove all hashtag addresses
- if (!$tryoembed) {
+ if (!$tryoembed AND get_config("system", "remove_hashtags_on_export")) {
$pattern = '/#<a.*?href="(.*?)".*?>(.*?)<\/a>/is';
$Text = preg_replace($pattern, '#$2', $Text);
}
return $Text;
}
-
$message = str_replace("\r", "", $html);
// replace all hashtag addresses
- $pattern = '/#<a.*?href="(.*?)".*?>(.*?)<\/a>/is';
- $message = preg_replace($pattern, '#$2', $message);
+ if (get_config("system", "remove_hashtags_on_export")) {
+ $pattern = '/#<a.*?href="(.*?)".*?>(.*?)<\/a>/is';
+ $message = preg_replace($pattern, '#$2', $message);
+ }
$doc = new DOMDocument();
$doc->preserveWhiteSpace = false;