﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30635	Add feature to sanitize text include control characters	Tatsuya Matoba	nobody	"Current, If Django send to feed text with control characters, Django raise the `UnserializableContentError` .

It was added by #20197.

I think a common solution for app developers who encounter this problem would be to sanitize the control characters.

I think it is desirable Django provide sanitizing feature for control characters.

For example, add the following function to `django/utils/xmlutils.py` :

{{{
def sanitize_control_charcters(text):
    return re.sub(r'[\x00-\x08\x0B-\x0C\x0E-\x1F]', "" "", text)
}}}

If there is no problem with adding functions, I would like to send a PR."	New feature	closed	Utilities	dev	Normal	needsinfo			Unreviewed	0	0	0	0	0	0
