def empty_and_escape(value):
 if (value is None):
  return ''
 else:
  return escape(value)

def empty_and_escape ( value ) : if ( value is None ) : return '' else : return escape ( value )
returns for a none value else escapes the content useful for form elements .