@@ -830,16 +830,16 @@ by Jonas Borgström in :issue:`18240`.)
830830html
831831----
832832
833- Added a new :func: `html.unescape ` function that converts HTML5 character
834- references to the corresponding Unicode characters.
835- (Contributed by Ezio Melotti in :issue: `2927 `)
833+ New function :func: `~ html.unescape ` function converts HTML5 character references to
834+ the corresponding Unicode characters. (Contributed by Ezio Melotti in
835+ :issue: `2927 `)
836836
837- Added a new * convert_charrefs * keyword argument to
838- :class: ` ~html.parser.HTMLParser ` that, when ``True ``, automatically converts
839- all character references. For backward-compatibility, its value defaults
840- to `` False ``, but it will change to ``True `` in future versions , so you
841- are invited to set it explicitly and update your code to use this new feature.
842- (Contributed by Ezio Melotti in :issue: `13633 `)
837+ :class: ` ~html.parser.HTMLParser ` accepts a new keyword argument
838+ * convert_charrefs * that, when ``True ``, automatically converts all character
839+ references. For backward-compatibility, its value defaults to `` False ``, but
840+ it will change to ``True `` in a future version of Python , so you are invited to
841+ set it explicitly and update your code to use this new feature. (Contributed
842+ by Ezio Melotti in :issue: `13633 `)
843843
844844The *strict * argument of :class: `~html.parser.HTMLParser ` is now deprecated.
845845(Contributed by Ezio Melotti in :issue: `15114 `)
@@ -2135,6 +2135,12 @@ Changes in the Python API
21352135* :mod: `audioop ` functions now raise an error immediately if passed string
21362136 input, instead of failing randomly later on (:issue: `16685 `).
21372137
2138+ * The new *convert_charrefs * argument to :class: `~html.parser.HTMLParser `
2139+ currently defaults to ``False `` for backward compatibility, but will
2140+ eventually be changed to default to ``True ``. It is recommended that you add
2141+ this keyword, with the appropriate value, to any
2142+ :class: `~html.parser.HTMLParser ` calls in your code.
2143+
21382144
21392145Changes in the C API
21402146--------------------
0 commit comments