From d3a7b5453b89f3e3c4c16954b5e0f60656ccb4f8 Mon Sep 17 00:00:00 2001 From: phf Date: Thu, 8 Sep 2016 10:25:48 +0200 Subject: [PATCH] New type for GETPOST --- htdocs/core/lib/functions.lib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 4d6f05f4de8..00cefe300a9 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -275,6 +275,9 @@ function GETPOST($paramname,$check='',$method=0,$filter=NULL,$options=NULL) if (empty($filter)) return 'BadFourthParameterForGETPOST'; $out=filter_var($out, $filter, $options); break; + case 'nohtml': + $out=dol_string_nohtmltag($out); + break; } }