diff --git a/Lib/html/parser.py b/Lib/html/parser.py index 13c95c34e505c8..34000538252dd1 100644 --- a/Lib/html/parser.py +++ b/Lib/html/parser.py @@ -243,7 +243,7 @@ def goahead(self, end): assert 0, "interesting.search() lied" # end while if end and i < n and not self.cdata_elem: - if self.convert_charrefs and not self.cdata_elem: + if self.convert_charrefs: self.handle_data(unescape(rawdata[i:n])) else: self.handle_data(rawdata[i:n])