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

Added some documentation for truncatewords_html (added in [4468]).


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4474 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 766e3396
...@@ -1133,6 +1133,16 @@ Truncates a string after a certain number of words. ...@@ -1133,6 +1133,16 @@ Truncates a string after a certain number of words.
**Argument:** Number of words to truncate after **Argument:** Number of words to truncate after
truncatewords_html
~~~~~~~~~~~~~~~~~~
Similar to ``truncatewords``, except that it is aware of HTML tags. Any tags
that are opened in the string and not closed before the truncation point, are
closed immediately after the truncation.
This is less efficient than ``truncatewords``, so should only be used when it
is being passed HTML text.
unordered_list unordered_list
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
......
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