﻿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
16066	fix_ampersands does not convert abbreviations followed by a semi-colon	Jerry	nobody	"In django/utils/html.py, unencoded_ampersands_re will not convert ampersands if they are followed by at least one alphabetical character and a semicolon. There are no named entities with only a single character, but abbreviations of that form are common in some circles: D&D and R&D for example.

''Each issue has adventures designed for early D&D; there’s the beginnings of a megadungeon in issue 2, “The Darkness Beneath”, and a lot of weirdness.''

''List of Our Mission in R&D; 1: Foster the creation of new business.  2: Create and accumulate advanced technologies.  3: Extend our value chain globally.  4: Fulfill our social responsibilities.''

Assuming that it is safe to encode what look like one-character entities, the \w+ can be changed to \w{2,}.

There are no one-character entities listed on http://www.w3.org/TR/WD-html40-970708/sgml/entities.html; or on the less-canonical http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references and http://www.w3schools.com/tags/ref_entities.asp.

If it isn't safe to assume that there will not be one-character entities, a note in the documentation (http://docs.djangoproject.com/en/dev/ref/templates/builtins/) will probably be useful. (It may be useful even if this patch does make sense, in case someone tries to use longer abbreviations, such as F&SF or AT&SF and follow them by a semi-colon."	Uncategorized	closed	Uncategorized	1.3	Normal	wontfix	ampersands fix_ampersands html.py		Unreviewed	1	0	0	0	0	0
