From 6ee37ada3241ed263d8d1c2901b030d964cbd161 Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 3 Jan 2023 20:48:06 +0000 Subject: Fixed #30686 -- Used Python HTMLParser in utils.text.Truncator. --- docs/releases/5.1.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/releases/5.1.txt b/docs/releases/5.1.txt index 701d686532..aca1281a98 100644 --- a/docs/releases/5.1.txt +++ b/docs/releases/5.1.txt @@ -368,6 +368,11 @@ Miscellaneous :meth:`~django.test.SimpleTestCase.assertInHTML` now add ``": "`` to the ``msg_prefix``. This is consistent with the behavior of other assertions. +* ``django.utils.text.Truncator`` used by :tfilter:`truncatechars_html` and + :tfilter:`truncatewords_html` template filters now uses + :py:class:`html.parser.HTMLParser` subclasses. This results in a more robust + and faster operation, but there may be small differences in the output. + .. _deprecated-features-5.1: Features deprecated in 5.1 -- cgit v1.3