Commit 9baa1fde by Tom Christie

Add 'mark_safe' in template tags. Closes #4952. Closes #4953.

parent 5128004f
......@@ -63,14 +63,14 @@ def form_for_link(link):
if field.required
]
schema = coreschema.Object(properties=properties, required=required)
return coreschema.render_to_form(schema)
return mark_safe(coreschema.render_to_form(schema))
@register.simple_tag
def render_markdown(markdown_text):
if not markdown:
return markdown_text
return markdown.markdown(markdown_text)
return mark_safe(markdown.markdown(markdown_text))
@register.simple_tag
......
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