#22130: Accelerated deprecation fix_ampersands and clean_html --------------------------------------+------------------------------------ Reporter: erikr | Owner: nobody Type: Cleanup/optimization | Status: new Component: Utilities | Version: master Severity: Normal | Resolution: Keywords: nlsprint14 | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 --------------------------------------+------------------------------------ Changes (by bmispelon):
* type: Bug => Cleanup/optimization * version: 1.6 => master * component: Template system => Utilities * stage: Unreviewed => Accepted Comment: I'm +1 on the idea. `fix_ampersands` and `clean_html` have been in Django since the beginning and I'm guessing that they were made for a very specific use-case at World Online but I don't believe they have their place inside a generic web framework. As an argument, here's `clean_html`'s docstring, explaining what it does exactly: {{{ Clean the given HTML. Specifically, do the following: * Convert <b> and <i> to <strong> and <em>. * Encode all ampersands correctly. * Remove all "target" attributes from <a> tags. * Remove extraneous HTML, such as presentational tags that open and immediately close and <br clear="all">. * Convert hard-coded bullets into HTML unordered lists. * Remove stuff like "<p> </p>", but only if it's at the bottom of the text. }}} -- Ticket URL: <https://code.djangoproject.com/ticket/22130#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/063.b88da3366916d62dc150102b5d2a7504%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.