code: def fix_text_escapes(self, txt: str, quote_char: str) -> str:
          
          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)
docs: Fix the various text escapes