Remove saxutils.unescape process

This commit is contained in:
YishiMichael 2022-03-28 19:31:19 +08:00
parent 89e139009b
commit 82c972b946
No known key found for this signature in database
GPG key ID: EC615C0C5A86BC80

View file

@ -3,7 +3,6 @@ from __future__ import annotations
import os import os
import re import re
import itertools as it import itertools as it
import xml.sax.saxutils as saxutils
from pathlib import Path from pathlib import Path
from contextlib import contextmanager from contextlib import contextmanager
import typing import typing
@ -513,11 +512,6 @@ class MarkupText(LabelledString):
self.get_end_tag_str() self.get_end_tag_str()
]) ])
def handle_submob_string(self, substr: str, string_span: Span) -> str:
if self.is_markup:
substr = saxutils.unescape(substr)
return substr
# Method alias # Method alias
def get_parts_by_text(self, substr: str) -> VGroup: def get_parts_by_text(self, substr: str) -> VGroup: