src/Tools/Utilities.php
public function getSafeArray(string $key, array & $data, string $default = null)
    {
        $value = $this->getFromArray($key, $data, $default);

        return \htmlspecialchars($value);
    }
public function getSafeArray(string $key, array & $data, string $default = null)
    {
        $value = $this->getFromArray($key, $data, $default);

        return \htmlspecialchars($value);
    }
public function getSafeArray ( string $ key , array & $ data , string $ default = null ) { $ value = $ this -> getFromArray ( $ key , $ data , $ default ) ; return \ htmlspecialchars ( $ value ) ; }
Get a value from an array, returning the default value when not present in the array, and stripping HTML tags.

@param string $key
@param array $data
@param string|null $default
@return mixed|null
Get a value from an array returning the default value when not present in the array and stripping HTML tags .