1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[2.2.x] Fixed #30589 -- Clarified that urlize should be applied only to email addresses without single quotes.

Backport of c2f381ef17 from master
This commit is contained in:
aitoehigie
2019-06-29 02:41:36 +01:00
committed by Mariusz Felisiak
parent 2b533ae60e
commit b9d1bb6955

View File

@@ -2434,8 +2434,9 @@ Django's built-in :tfilter:`escape` filter. The default value for
.. note::
If ``urlize`` is applied to text that already contains HTML markup,
things won't work as expected. Apply this filter only to plain text.
If ``urlize`` is applied to text that already contains HTML markup, or to
email addresses that contain single quotes (``'``), things won't work as
expected. Apply this filter only to plain text.
.. templatefilter:: urlizetrunc