Django

Code

Changeset 4474

Show
Ignore:
Timestamp:
02/09/07 23:22:12 (2 years ago)
Author:
mtredinnick
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/templates.txt

    r4420 r4474  
    11341134**Argument:** Number of words to truncate after 
    11351135 
     1136truncatewords_html 
     1137~~~~~~~~~~~~~~~~~~ 
     1138 
     1139Similar to ``truncatewords``, except that it is aware of HTML tags. Any tags 
     1140that are opened in the string and not closed before the truncation point, are 
     1141closed immediately after the truncation. 
     1142 
     1143This is less efficient than ``truncatewords``, so should only be used when it 
     1144is being passed HTML text. 
     1145 
    11361146unordered_list 
    11371147~~~~~~~~~~~~~~