diff options
| author | David Smith <smithdc@gmail.com> | 2023-01-03 20:48:06 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2024-02-07 09:46:25 +0100 |
| commit | 6ee37ada3241ed263d8d1c2901b030d964cbd161 (patch) | |
| tree | b37d4c173f5a7621e9304055875eca8d1939a069 /docs | |
| parent | 70f39e46f86b946c273340d52109824c776ffb4c (diff) | |
Fixed #30686 -- Used Python HTMLParser in utils.text.Truncator.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/5.1.txt | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
