Kaydet (Commit) cfd5b184 authored tarafından Malcolm Tredinnick's avatar Malcolm Tredinnick

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
üst 90c177f1
...@@ -1326,12 +1326,17 @@ urlize ...@@ -1326,12 +1326,17 @@ urlize
Converts URLs in plain text into clickable links. 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 urlizetrunc
~~~~~~~~~~~ ~~~~~~~~~~~
Converts URLs into clickable links, truncating URLs longer than the given Converts URLs into clickable links, truncating URLs longer than the given
character limit. character limit.
As with urlize_, this filter should only be applied to *plain* text.
**Argument:** Length to truncate URLs to **Argument:** Length to truncate URLs to
wordcount wordcount
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment