Author: mtredinnick Date: 2007-02-09 23:22:12 -0600 (Fri, 09 Feb 2007) New Revision: 4474
Modified: django/trunk/docs/templates.txt Log: Added some documentation for truncatewords_html (added in [4468]). Modified: django/trunk/docs/templates.txt =================================================================== --- django/trunk/docs/templates.txt 2007-02-10 04:01:19 UTC (rev 4473) +++ django/trunk/docs/templates.txt 2007-02-10 05:22:12 UTC (rev 4474) @@ -1133,6 +1133,16 @@ **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 ~~~~~~~~~~~~~~ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
