Form 5.0 class helper

This commit is contained in:
Deltacms 2023-12-09 10:36:00 +01:00
parent ffa19c1747
commit 09b90af501
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,7 @@ class helper {
const FILTER_STRING_SHORT = 9;
const FILTER_TIMESTAMP = 10;
const FILTER_URL = 11;
const FILTER_STRING_LONG_NOSTRIP = 12;
@ -377,6 +378,9 @@ class helper {
// $text = mb_substr(filter_var($text, FILTER_SANITIZE_STRING), 0, 500000);
$text = mb_substr( strip_tags($text) , 0, 500000);
break;
case self::FILTER_STRING_LONG_NOSTRIP:
$text = mb_substr( $text , 0, 500000);
break;
case self::FILTER_STRING_SHORT:
// $text = mb_substr(filter_var($text, FILTER_SANITIZE_STRING), 0, 500);
$text = mb_substr( strip_tags($text) , 0, 500);