parser.feed(s)
parser.close()
parser.generate()
- return parser.result
+ return mark_safe(parser.result)
def buildtag(name, content, **attrs):
- return mark_safe('<%s %s>%s</a>' % (name, " ".join('%s="%s"' % i for i in attrs.items()), content))
+ return mark_safe('<%s %s>%s</%s>' % (name, " ".join('%s="%s"' % i for i in attrs.items()), unicode(content), name))
def hyperlink(url, title, **attrs):
return mark_safe('<a href="%s" %s>%s</a>' % (url, " ".join('%s="%s"' % i for i in attrs.items()), title))