Opened 11 years ago

Closed 11 years ago

#4602 closed (invalid)

truncatewords_html thinks <br/> is an open tag and turns it to </br/> which is an invalid.

Reported by: kmetaxas@… Owned by: Adrian Holovaty
Component: Template system Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


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.

Change History (1)

comment:1 Changed 11 years ago by kmetaxas@…

Resolution: invalid
Status: newclosed

Oops I was developing on SVN but the server had an older revision. This problem does not exist on the recent revisions.
My apologies.

Note: See TracTickets for help on using tickets.
Back to Top