From 1aa1c4672cf7213f1073a5ab5f7c1ac8bc78d19f Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sat, 10 Feb 2007 05:22:12 +0000 Subject: [PATCH] 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 --- docs/templates.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/templates.txt b/docs/templates.txt index 9f8fe446b4..a3d60c5400 100644 --- a/docs/templates.txt +++ b/docs/templates.txt @@ -1133,6 +1133,16 @@ Truncates a string after a certain number of words. **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 ~~~~~~~~~~~~~~