diff options
Diffstat (limited to 'src/beautifulsoup/element.py')
-rw-r--r-- | src/beautifulsoup/element.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/beautifulsoup/element.py b/src/beautifulsoup/element.py index b5b8e84..7649b4c 100644 --- a/src/beautifulsoup/element.py +++ b/src/beautifulsoup/element.py @@ -383,10 +383,10 @@ class Tag(PageElement, Entities): entities are being converted, any unrecognized entities are escaped.""" x = match.group(1) - if builder.convertHTMLEntities and x in name2codepoint: + if builder.convert_html_entities and x in name2codepoint: return unichr(name2codepoint[x]) elif x in self.XML_ENTITIES_TO_SPECIAL_CHARS: - if builder.convertXMLEntities: + if builder.convert_xml_entities: return self.XML_ENTITIES_TO_SPECIAL_CHARS[x] else: return u'&%s;' % x |