(self, s)
return s
Remove ins, del and p tags with no content
        we need a more elegant way to achieve this
Remove ins, del and p tags with no content
        we need a more elegant way to achieve this
Remove ins del and p tags with no content we need a more elegant way to achieve this
def _clean_tags(self, s):
        """
        Remove ins, del and p tags with no content
        we need a more elegant way to achieve this
        """

        s = s.replace('<p></p>', '')
        s = s.replace('<p><br></p>', '')

        s = s.replace('<br><br><br>', '<br>')
        s = s.replace('<br><br>', '<br>')

        s = s.replace('<ins></ins>', '')
        s = s.replace('<del></del>', '')
        s = s.replace('<ins><br></ins>', '')
        s = s.replace('<del><br></del>', '')

        return s
def _clean_tags ( self , s ) : s = s . replace ( '<p></p>' , '' ) s = s . replace ( '<p><br></p>' , '' ) s = s . replace ( '<br><br><br>' , '<br>' ) s = s . replace ( '<br><br>' , '<br>' ) s = s . replace ( '<ins></ins>' , '' ) s = s . replace ( '<del></del>' , '' ) s = s . replace ( '<ins><br></ins>' , '' ) s = s . replace ( '<del><br></del>' , '' ) return s