﻿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
7261	Support for __html__ for Library interoperability	Armin Ronacher	Unai Zalakain	"The pylons developers proposed the `__html__` special method to determine the HTML representation of strings which is currently implemented by Pylons for mako, Jinja2 and soon Genshi.  Having support for that in Django would make it possible to use the autoescaping facilities of these template engines in Django.

The idea is that if an object implements `__html__` which returns a string this is used as HTML representation (eg: on escaping).  If the object is a str or unicode subclass and returns itself the object is a safe string type.

This Genshi ticket shows some details about it: http://genshi.edgewall.org/ticket/202"	New feature	closed	Template system	dev	Normal	fixed	__html__	miracle2k oliver@… Wil Clouser ivank jdunck@…	Accepted	1	1	1	1	0	0
