diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py index 3ab57c23071..b68eb7a62ab 100644 --- a/Lib/sgmllib.py +++ b/Lib/sgmllib.py @@ -428,7 +428,7 @@ class SGMLParser(markupbase.ParserBase): if replacement is None: self.unknown_entityref(name) else: - self.handle_data(self.convert_entityref(name)) + self.handle_data(replacement) # Example -- handle data, should be overridden def handle_data(self, data):