def fixup_ins_del_tags(html):
 doc = parse_html(html, cleanup=False)
 _fixup_ins_del_tags(doc)
 html = serialize_html_fragment(doc, skip_outer=True)
 return html

def fixup_ins_del_tags ( html ) : doc = parse_html ( html , cleanup = False ) _fixup_ins_del_tags ( doc ) html = serialize_html_fragment ( doc , skip_outer = True ) return html
given an html string .