Fix the various text escapes

def fix_text_escapes(self, txt: str, quote_char: str) -> str:
        """ Fix the various text escapes """
        def _subf(matchobj):
            return matchobj.group(0).translate(self.re_trans_table)
        if quote_char:
            txt = re.sub(r'\\'+quote_char, quote_char, txt)
        return re.sub(r'\\.', _subf, txt, flags=re.MULTILINE + re.DOTALL + re.UNICODE)