summaryrefslogtreecommitdiffstats
path: root/todolists
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2017-02-19 18:14:50 +0100
committerJelle van der Waa <jelle@vdwaa.nl>2018-04-08 12:51:19 +0200
commitc7681318b709dc3d61d16999ba1865c622dd390d (patch)
tree06851d54389bd9b8d13f5436342472aaf5704d3b /todolists
parentdfb7be585f561deed0819c4a957460200f441534 (diff)
downloadarchweb-c7681318b709dc3d61d16999ba1865c622dd390d.tar.gz
archweb-c7681318b709dc3d61d16999ba1865c622dd390d.zip
templatetags: use render_html for rendering html tags
Diffstat (limited to 'todolists')
-rw-r--r--todolists/templatetags/todolists.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/todolists/templatetags/todolists.py b/todolists/templatetags/todolists.py
index 5f31dc1f..a54a9b82 100644
--- a/todolists/templatetags/todolists.py
+++ b/todolists/templatetags/todolists.py
@@ -1,4 +1,5 @@
from django import template
+from django.utils.html import format_html
register = template.Library()
@@ -14,6 +15,6 @@ def todopkg_details_link(todopkg):
return todopkg.pkgname
link = '<a href="%s" title="View package details for %s">%s</a>'
url = pkg_absolute_url(todopkg.repo, todopkg.arch, pkg.pkgname)
- return link % (url, pkg.pkgname, pkg.pkgname)
+ return format_html(link % (url, pkg.pkgname, pkg.pkgname))
# vim: set ts=4 sw=4 et: