protected function _cleanValue($value, $trim = false)
    {
        $value = htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
        return ($trim) ? trim($value) : $value;
    }
protected function _cleanValue($value, $trim = false)
    {
        $value = htmlspecialchars($value, ENT_QUOTES, 'UTF-8');
        return ($trim) ? trim($value) : $value;
    }
protected function _cleanValue ( $ value , $ trim = false ) { $ value = htmlspecialchars ( $ value , ENT_QUOTES , 'UTF-8' ) ; return ( $ trim ) ? trim ( $ value ) : $ value ; }
Clear attribute value

@param $value
@param bool|false $trim
@return string
Clear attribute value