Opened 18 years ago
Closed 18 years ago
#4602 closed (invalid)
truncatewords_html thinks <br/> is an open tag and turns it to </br/> which is an invalid.
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Note:
See TracTickets
for help on using tickets.
Oops I was developing on SVN but the server had an older revision. This problem does not exist on the recent revisions.
My apologies.