src/Util.php
public static function stripTags( $value, $allowable_tags = NULL )
    {
        if ( is_string($value) ){
            $res = strip_tags($value, $allowable_tags);
            return $res;
        }
        elseif ( is_array($value) ){
            $array = $value;
            foreach( $array as $key => $value ){
                $array[$key] = self::stripTags( $value, $allowable_tags );
            }
            return $array;
        }
        elseif ( is_object($value) ){
            $object = $value;
            $vars = get_object_vars($object);
            foreach( $vars as $key => $value ){
                $object->$key = self::stripTags( $value );
            }
            return $object;
        }
        return $value;
    }
public static function stripTags( $value, $allowable_tags = NULL )
    {
        if ( is_string($value) ){
            $res = strip_tags($value, $allowable_tags);
            return $res;
        }
        elseif ( is_array($value) ){
            $array = $value;
            foreach( $array as $key => $value ){
                $array[$key] = self::stripTags( $value, $allowable_tags );
            }
            return $array;
        }
        elseif ( is_object($value) ){
            $object = $value;
            $vars = get_object_vars($object);
            foreach( $vars as $key => $value ){
                $object->$key = self::stripTags( $value );
            }
            return $object;
        }
        return $value;
    }
public static function stripTags ( $ value , $ allowable_tags = NULL ) { if ( is_string ( $ value ) ) { $ res = strip_tags ( $ value , $ allowable_tags ) ; return $ res ; } elseif ( is_array ( $ value ) ) { $ array = $ value ; foreach ( $ array as $ key => $ value ) { $ array [ $ key ] = self :: stripTags ( $ value , $ allowable_tags ) ; } return $ array ; } elseif ( is_object ( $ value ) ) { $ object = $ value ; $ vars = get_object_vars ( $ object ) ; foreach ( $ vars as $ key => $ value ) { $ object -> $ key = self :: stripTags ( $ value ) ; } return $ object ; } return $ value ; }
remove HTML tags

@param mixed $value
@param string $allowable_tags

@return mixed
remove HTML tags