public function strip_php_tags($data)
    {
        if (is_array($data)) {
            foreach ($data as $key=>$value) {
                $data[$key] = $this->strip_php_tags($value);
            }
            return $data;
        }
        return addslashes(htmlspecialchars(strip_tags($data)));
    }
public function strip_php_tags($data)
    {
        if (is_array($data)) {
            foreach ($data as $key=>$value) {
                $data[$key] = $this->strip_php_tags($value);
            }
            return $data;
        }
        return addslashes(htmlspecialchars(strip_tags($data)));
    }
public function strip_php_tags ( $ data ) { if ( is_array ( $ data ) ) { foreach ( $ data as $ key => $ value ) { $ data [ $ key ] = $ this -> strip_php_tags ( $ value ) ; } return $ data ; } return addslashes ( htmlspecialchars ( strip_tags ( $ data ) ) ) ; }
Strip php tags and notations in string.
@param array|string $data
@return array|null|string
Strip php tags and notations in string .