Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
39b49fd3
Kaydet (Commit)
39b49fd3
authored
Eyl 13, 2013
tarafından
Goetz
Kaydeden (comit)
Tim Graham
Eyl 13, 2013
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #21101 -- Updated urlize documentation to mention email addresses
üst
ec89e172
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
builtins.txt
docs/ref/templates/builtins.txt
+7
-2
No files found.
docs/ref/templates/builtins.txt
Dosyayı görüntüle @
39b49fd3
...
@@ -2226,7 +2226,7 @@ If ``value`` is ``"http://www.example.org/"``, the output will be
...
@@ -2226,7 +2226,7 @@ If ``value`` is ``"http://www.example.org/"``, the output will be
urlize
urlize
^^^^^^
^^^^^^
Converts URLs in text into clickable links.
Converts URLs
and email addresses
in text into clickable links.
This template tag works on links prefixed with ``http://``, ``https://``, or
This template tag works on links prefixed with ``http://``, ``https://``, or
``www.``. For example, ``http://goo.gl/aia1t`` will get converted but
``www.``. For example, ``http://goo.gl/aia1t`` will get converted but
...
@@ -2250,6 +2250,11 @@ If ``value`` is ``"Check out www.djangoproject.com"``, the output will be
...
@@ -2250,6 +2250,11 @@ If ``value`` is ``"Check out www.djangoproject.com"``, the output will be
``"Check out <a href="http://www.djangoproject.com"
``"Check out <a href="http://www.djangoproject.com"
rel="nofollow">www.djangoproject.com</a>"``.
rel="nofollow">www.djangoproject.com</a>"``.
In addition to web links, ``urlize`` also converts email addresses into
``mailto:`` links. If ``value`` is
``"Send questions to foo@example.com"``, the output will be
``"Send questions to <a href="mailto:foo@example.com">foo@example</a>"``.
The ``urlize`` filter also takes an optional parameter ``autoescape``. If
The ``urlize`` filter also takes an optional parameter ``autoescape``. If
``autoescape`` is ``True``, the link text and URLs will be escaped using
``autoescape`` is ``True``, the link text and URLs will be escaped using
Django's built-in :tfilter:`escape` filter. The default value for
Django's built-in :tfilter:`escape` filter. The default value for
...
@@ -2265,7 +2270,7 @@ Django's built-in :tfilter:`escape` filter. The default value for
...
@@ -2265,7 +2270,7 @@ Django's built-in :tfilter:`escape` filter. The default value for
urlizetrunc
urlizetrunc
^^^^^^^^^^^
^^^^^^^^^^^
Converts URLs into clickable links just like urlize_, but truncates URLs
Converts URLs
and email addresses
into clickable links just like urlize_, but truncates URLs
longer than the given character limit.
longer than the given character limit.
**Argument:** Number of characters that link text should be truncated to,
**Argument:** Number of characters that link text should be truncated to,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment