Skip to content

Commit

Permalink
Merge 5e1bfba into 62ef715
Browse files Browse the repository at this point in the history
  • Loading branch information
willingham committed Jul 28, 2018
2 parents 62ef715 + 5e1bfba commit 0e87f98
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions django_mfa/templatetags/otp_tags.py
Expand Up @@ -4,8 +4,7 @@
from urllib import urlencode
from django import template
from django.template.defaultfilters import stringfilter
from django.utils.html import conditional_escape
from django.utils.safestring import mark_safe
from django.utils.html import conditional_escape, format_html

register = template.Library()

Expand All @@ -17,4 +16,4 @@ def qrcode(value, alt=None):
urlencode({'chs': '150x150', 'cht': 'qr', 'chl': value, 'choe': 'UTF-8'}))
alt = conditional_escape(alt or value)

return mark_safe(u"""<img class="qrcode" src="%s" width="150" height="150" alt="%s" />""" % (url, alt))
return format_html(u"""<img class="qrcode" src="%s" width="150" height="150" alt="%s" />""" % (url, alt))

0 comments on commit 0e87f98

Please sign in to comment.