From 0d5a89a96b7cc99c71fc97175c269f99b35315f3 Mon Sep 17 00:00:00 2001 From: Martin Tatzber Date: Mon, 24 Feb 2014 08:58:00 +0000 Subject: [PATCH] Funktion clearHtmlTags zur Bereinigung von ul, li und br-Tags Anwendung auf Lehrinhalte in Zertifikat --- include/functions.inc.php | 15 +++++++++++++++ rdf/zertifikat.rdf.php | 1 + 2 files changed, 16 insertions(+) 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('