Commit 09ab3f95 by Joshua Roesslein Committed by Chris Wanstrath

Be sure to cast value to a string for unescaped tags.

parent 828b0017
...@@ -104,7 +104,7 @@ class Template(object): ...@@ -104,7 +104,7 @@ class Template(object):
@modifier('{') @modifier('{')
def render_unescaped(self, tag_name=None, context=None): def render_unescaped(self, tag_name=None, context=None):
"""Render a tag without escaping it.""" """Render a tag without escaping it."""
return context.get(tag_name, '') return str(context.get(tag_name, ''))
@modifier('>') @modifier('>')
def render_partial(self, tag_name=None, context=None): def render_partial(self, tag_name=None, context=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment