Skip to content

Commit 9baa1fd

Browse files
committed
Add 'mark_safe' in template tags. Closes #4952. Closes #4953.
1 parent 5128004 commit 9baa1fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rest_framework/templatetags/rest_framework.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ def form_for_link(link):
6363
if field.required
6464
]
6565
schema = coreschema.Object(properties=properties, required=required)
66-
return coreschema.render_to_form(schema)
66+
return mark_safe(coreschema.render_to_form(schema))
6767

6868

6969
@register.simple_tag
7070
def render_markdown(markdown_text):
7171
if not markdown:
7272
return markdown_text
73-
return markdown.markdown(markdown_text)
73+
return mark_safe(markdown.markdown(markdown_text))
7474

7575

7676
@register.simple_tag

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy