diff --git a/include/functions.inc.php b/include/functions.inc.php index f33f52fe0..59078fd04 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -882,4 +882,19 @@ function decryptData($value,$key) $decrypttext = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, $crypttext, MCRYPT_MODE_ECB, $iv); return trim($decrypttext); } + +function clearHtmlTags($text) +{ + $text=mb_str_replace('
','\n',$text); + $text=mb_str_replace('
','\n',$text); + $text=mb_str_replace('
','\n',$text); + + $text=mb_str_replace('