From cedf131f4dcb04cd127fff7de14ed610726f602f Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 10 Nov 2011 21:36:23 +0530 Subject: [PATCH] mark_safe --- printaform/formaprint/templatetags/random.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/printaform/formaprint/templatetags/random.py b/printaform/formaprint/templatetags/random.py index 0ecf4a1..a17c2df 100644 --- a/printaform/formaprint/templatetags/random.py +++ b/printaform/formaprint/templatetags/random.py @@ -1,5 +1,5 @@ from django import template - +from django.utils.safestring import mark_safe register = template.Library() def make_li(value): @@ -7,6 +7,6 @@ def make_li(value): ret = '' for l in lines: ret += "
  • %s
  • " % l - return ret + return mark_safe(ret) register.filter("make_li", make_li)