﻿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
1270	[patch] Escape filter does not escape single quotes to &apos;	beegee	Adrian Holovaty	"The escape filter does not escape single quotes to &apos;. Why not? It can simply be repaired in the following file [http://code.djangoproject.com/browser/django/trunk/django/utils/html.py].

Line 28 in this file states: return html.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;').replace('""', '&quot;')

Simply extend this line as follows: return html.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;').replace('""', '&quot;').replace(""'"", '&apos;')

When building xml files with the Django template system this is a life saver. Because, now all five internally declared xml entities are nicely escaped by the escape filter.

"	defect	closed	Template system		major	fixed			Unreviewed	1	0	0	0	0	0
