#30635: Add feature to sanitize text include control characters
--------------------------------+--------------------------------------
     Reporter:  Tatsuya Matoba  |                    Owner:  nobody
         Type:  New feature     |                   Status:  closed
    Component:  Utilities       |                  Version:  master
     Severity:  Normal          |               Resolution:  needsinfo
     Keywords:                  |             Triage Stage:  Unreviewed
    Has patch:  0               |      Needs documentation:  0
  Needs tests:  0               |  Patch needs improvement:  0
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+--------------------------------------
Changes (by Carlton Gibson):

 * status:  new => closed
 * version:  2.2 => master
 * resolution:   => needsinfo


Comment:

 I'm not sure a util in Django is really called for here. (The thought is:
 ''Process your data prior to handing it off for serialization.'')

 **Maybe** we could include something but...

 1. Are there not already utilities available that do everything you want
 here (and more)? (Searching "Python xml escape control characters" seems
 to provide some suggestions.)
 2. The [https://www.w3.org/International/questions/qa-controls#handling
 W3C doc] suggests replacing replacing control characters with numeric
 codes. Should we not be doing this?
 3. Then if we are going to just strip the characters out, I'm not sure we
 need a utility just for that? (Back to the initial thought.)

 I'll mark this Needs Info. Maybe a fuller suggestion presented to the
 DevelopersMailingList might be a way forward.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30635#comment:1>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.84eb43e58f369d6b0ae98767f279f8b7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to