X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/5960a749b88d64b2d0587e090d3f47be554d4f9d..c76406e46e71cb86cfb440667bfbbe21b36e709e:/forum/utils/html.py diff --git a/forum/utils/html.py b/forum/utils/html.py index e7ca42c..86a4ef9 100644 --- a/forum/utils/html.py +++ b/forum/utils/html.py @@ -58,7 +58,7 @@ def html2text(s, ignore_tags=(), indent_width=4, page_width=80): return mark_safe(parser.result) def buildtag(name, content, **attrs): - return mark_safe('<%s %s>%s' % (name, " ".join('%s="%s"' % i for i in attrs.items()), content)) + return mark_safe('<%s %s>%s' % (name, " ".join('%s="%s"' % i for i in attrs.items()), unicode(content), name)) def hyperlink(url, title, **attrs): return mark_safe('%s' % (url, " ".join('%s="%s"' % i for i in attrs.items()), title))