def html4annotation(htmlpage, baseurl=None, proxy_resources=None):
 htmlpage = add_tagids(htmlpage)
 cleaned_html = descriptify(htmlpage, baseurl, proxy=proxy_resources)
 return cleaned_html

def html4annotation ( htmlpage , baseurl = None , proxy_resources = None ) : htmlpage = add_tagids ( htmlpage ) cleaned_html = descriptify ( htmlpage , baseurl , proxy = proxy_resources ) return cleaned_html
convert the given html document for the annotation ui this adds tags .