def _ws(text, keep_spaces=False):
 if keep_spaces:
  return keep_space(_(text))
 else:
  return websafe(_(text))

def _ws ( text , keep_spaces = False ) : if keep_spaces : return keep_space ( _ ( text ) ) else : return websafe ( _ ( text ) )
helper function to get html escaped output from gettext .