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

This commit is contained in:
Tom Christie 2017-03-10 10:59:31 +00:00
parent 5128004f54
commit 9baa1fde15

View File

@ -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