#30686: Improve utils.text.Truncator &co to use a full HTML parser.
-------------------------------+---------------------------------------
     Reporter:  Thomas Hooper  |                    Owner:  David Smith
         Type:  Bug            |                   Status:  assigned
    Component:  Utilities      |                  Version:  dev
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+---------------------------------------

Comment (by David Smith):

 [https://github.com/django/django/pull/16421 PR ]

 I was thinking about Jon's suggestion of using the HTMLParser from the
 standard library. Since the last comments on this ticket Adam Johnson has
 also written a blog post on Truncating HTML with Python's HTMLParser which
 helped inspire my PR, see [https://adamj.eu/tech/2021/09/23/truncating-my-
 blog-posts-with-html-parser/ blog post]. (I'd cc Adam as I've mentioned
 his name, but not sure how to do that?!)

 While my PR still needs more work I thought it worth sharing as it may be
 helpful to Carlton when reviewing tomorrow.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30686#comment:23>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701857972b15c-a26ffe05-c63f-4604-b0f6-642f90888918-000000%40eu-central-1.amazonses.com.

Reply via email to