truncatewords_html thinks <br/> is an open tag and turns it to </br/> which is an invalid.
|Reported by:||kmetaxas@…||Owned by:||adrian|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
django.utils.text.truncate_html_words (used in trucatewords_html filter) thinks that the <br/> tag is an 'open' tag and tries to close it by adding a </br/> tag (which,ofcourse, is invalid). The W3C html validator revealed this problem to me.
I am using SVN version of Django (revision 5487).
This being my first ticket, i apologize if this information is not enough, though i can't think of anything else relevant.