diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-08-19 08:50:51 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-08-19 08:50:51 +0000 |
| commit | cfd5b184fba4f51a6756fecaf4ec4272f3e23bfc (patch) | |
| tree | d0c4c61b8b9f6b222fb5f9d4e48ec3f2c16a49fe /docs | |
| parent | 90c177f18e9fa57b3239cc3c3e4a0fa10f6a087a (diff) | |
Clarified that urlize and urlizetrunc should only be applied to plain text. Refs #5202.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/templates.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/templates.txt b/docs/templates.txt index 0d53c281d1..53384864ea 100644 --- a/docs/templates.txt +++ b/docs/templates.txt @@ -1326,12 +1326,17 @@ urlize Converts URLs in plain text into clickable links. +Note that if ``urlize`` is applied to text that already contains HTML markup, +things won't work as expected. Apply this filter only to *plain* text. + urlizetrunc ~~~~~~~~~~~ Converts URLs into clickable links, truncating URLs longer than the given character limit. +As with urlize_, this filter should only be applied to *plain* text. + **Argument:** Length to truncate URLs to wordcount |
