def parse(self, reader: TextReader, document: Element) -> str:
    matched = reader.consume(self.pattern)
    if matched:
        return unescape(entitytrans._unescape(matched.group(1)[1:(- 1)]))
    else:
        return None
def parse(self, reader: TextReader, document: Element) -> str:
    matched = reader.consume(self.pattern)
    if matched:
        return unescape(entitytrans._unescape(matched.group(1)[1:(- 1)]))
    else:
        return None