diff options
author | Leonard Richardson <leonardr@segfault.org> | 2013-05-20 14:59:32 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2013-05-20 14:59:32 -0400 |
commit | 9ebf90c684990306433b6c364a93b425a88ef2e7 (patch) | |
tree | e8cfba2b7e0166cd77512b031d61794b74491ca9 /NEWS.txt | |
parent | b289252da31f1824ee9c85f1ce53907069d6dd7e (diff) |
The default XML formatter will now replace ampersands even if they appear to be part of entities. That is, "<" will become "&lt;".[bug=1182183]
Diffstat (limited to 'NEWS.txt')
-rw-r--r-- | NEWS.txt | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -5,6 +5,16 @@ list of tags and strings without having to check whether each element is a tag or a string. +* The default XML formatter will now replace ampersands even if they + appear to be part of entities. That is, "<" will become + "&lt;". The old code was left over from Beautiful Soup 3, which + didn't always turn entities into Unicode characters. + + If you really want the old behavior (maybe because you add new + strings to the tree, those strings include entities, and you want + the formatter to leave them alone on output), it can be found in + EntitySubstitution.substitute_xml_containing_entities(). [bug=1182183] + * Gave new_string() the ability to create subclasses of NavigableString. [bug=1181986] |