def normalize_html(input):
 return kuma.wiki.content.parse(unicode(input)).filter(WhitespaceRemovalFilter).serialize(alphabetical_attributes=True)

def normalize_html ( input ) : return kuma . wiki . content . parse ( unicode ( input ) ) . filter ( WhitespaceRemovalFilter ) . serialize ( alphabetical_attributes = True )
normalize html5 input .