diff options
| author | Natalia <124304+nessita@users.noreply.github.com> | 2026-02-25 10:37:38 -0300 |
|---|---|---|
| committer | Natalia <124304+nessita@users.noreply.github.com> | 2026-02-25 13:09:57 -0300 |
| commit | d112203b19946659335db6462043f8652e6700a1 (patch) | |
| tree | 6b0187c8a63eca54c22ea169650adf358510119d /django | |
| parent | 090f1da56e663e9f840e307e73b5cf011cb7b061 (diff) | |
[6.0.x] Fixed #36944 -- Removed MAX_LENGTH_HTML and related 5M chars limit references from HTML truncation docs.
Backport of bbc6818bc12f14c1764a7eb68556018195f56b59 from main.
Diffstat (limited to 'django')
| -rw-r--r-- | django/utils/text.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/django/utils/text.py b/django/utils/text.py index 29f5c8f2e8..0fc32720ad 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)) |
