<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def string_format_func(s):
 	""" 	Function used internally to format string data for output to XML. 	Escapes back-slashes and quotes, and wraps the resulting string in 	quotes. 	"""

	return u"\"%s\"" % unicode(s).replace(u"\\", u"\\\\").replace(u"\"", u"\\\"")