summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
authorNatalia <124304+nessita@users.noreply.github.com>2026-02-25 10:37:38 -0300
committernessita <124304+nessita@users.noreply.github.com>2026-02-25 13:08:52 -0300
commitbbc6818bc12f14c1764a7eb68556018195f56b59 (patch)
tree24e15577990c9e15676750c9e59dbb5cab8ec94f /django/utils
parent07d6fa5a95b79a70cf4ba4b725ce37e488ceb7ca (diff)
Fixed #36944 -- Removed MAX_LENGTH_HTML and related 5M chars limit references from HTML truncation docs.
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/text.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/django/utils/text.py b/django/utils/text.py
index ef4baa935b..cfe6ceca9e 100644
--- a/django/utils/text.py
+++ b/django/utils/text.py
@@ -185,14 +185,8 @@ class TruncateWordsHTMLParser(TruncateHTMLParser):
class Truncator(SimpleLazyObject):
"""
An object used to truncate text, either by characters or words.
-
- When truncating HTML text (either chars or words), input will be limited to
- at most `MAX_LENGTH_HTML` characters.
"""
- # 5 million characters are approximately 4000 text pages or 3 web pages.
- MAX_LENGTH_HTML = 5_000_000
-
def __init__(self, text):
super().__init__(lambda: str(text))