'Convert HTML to something meaningful in plain text'

def unknown_endtag(self, tag):

    tag = lower(tag)
    if (tag not in self.ignore_tags):
        if ((tag[0] == 'h') or (tag in ['pre'])):
            self.add_break()
        elif (tag == 'li'):
            self.add_break()
        elif (tag in ['dd', 'dt']):
            self.add_break()
            self.mod_indent((-1))
        elif (tag in ['ul', 'dl', 'ol']):
            self.add_break()
            self.mod_indent((-1))
            self.ol_number = 0
