There was an error while loading. Please reload this page.
2 parents e3e26ad + 396588a commit 7c68e13Copy full SHA for 7c68e13
webpack_loader/templatetags/webpack_loader.py
@@ -1,5 +1,6 @@
1
from django import template
2
from django.conf import settings
3
+from django.utils.safestring import mark_safe
4
5
from ..utils import get_config, get_assets, get_bundle
6
@@ -21,7 +22,7 @@ def render_as_tags(bundle):
21
22
tags.append('<script type="text/javascript" src="{}"></script>'.format(url))
23
elif chunk['name'].endswith('.css'):
24
tags.append('<link type="text/css" href="{}" rel="stylesheet"/>'.format(url))
- return '\n'.join(tags)
25
+ return mark_safe('\n'.join(tags))
26
27
28
def _get_bundle(bundle_name, extension, config):
0 commit comments