Form 5.0 class helper
This commit is contained in:
parent
ffa19c1747
commit
09b90af501
|
@ -17,6 +17,7 @@ class helper {
|
||||||
const FILTER_STRING_SHORT = 9;
|
const FILTER_STRING_SHORT = 9;
|
||||||
const FILTER_TIMESTAMP = 10;
|
const FILTER_TIMESTAMP = 10;
|
||||||
const FILTER_URL = 11;
|
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(filter_var($text, FILTER_SANITIZE_STRING), 0, 500000);
|
||||||
$text = mb_substr( strip_tags($text) , 0, 500000);
|
$text = mb_substr( strip_tags($text) , 0, 500000);
|
||||||
break;
|
break;
|
||||||
|
case self::FILTER_STRING_LONG_NOSTRIP:
|
||||||
|
$text = mb_substr( $text , 0, 500000);
|
||||||
|
break;
|
||||||
case self::FILTER_STRING_SHORT:
|
case self::FILTER_STRING_SHORT:
|
||||||
// $text = mb_substr(filter_var($text, FILTER_SANITIZE_STRING), 0, 500);
|
// $text = mb_substr(filter_var($text, FILTER_SANITIZE_STRING), 0, 500);
|
||||||
$text = mb_substr( strip_tags($text) , 0, 500);
|
$text = mb_substr( strip_tags($text) , 0, 500);
|
||||||
|
|
Loading…
Reference in New Issue