(value)
return mark_safe(value)
Returns the given HTML with single and double quotes escpaed with \ for a JS context
Returns the given HTML with single and double quotes escpaed with \ for a JS context
Returns the given HTML with single and double quotes escpaed with \ for a JS context
def escape_quotes(value):
	"""
	Returns the given HTML with single and double quotes escpaed with \ for a JS context
	"""
	value = value.replace("'", "\\'")
	value = value.replace('"', '\\"')
	return mark_safe(value)
def escape_quotes ( value ) : value = value . replace ( "'" , "\\'" ) value = value . replace ( '"' , '\\"' ) return mark_safe ( value )