def strip_spaces_between_tags(value):
 return re.sub(u'>\\s+<', u'><', force_text(value))

def strip_spaces_between_tags ( value ) : return re . sub ( u'>\\s+<' , u'><' , force_text ( value ) )
returns the given html with spaces between tags removed .