X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/58f020d4fab8251103edb89bfc4cf5d5d389d1ad..e1bb6d86117346dc3af5a0d3cdb11523860873b1:/forum/utils/html.py diff --git a/forum/utils/html.py b/forum/utils/html.py index 16d5ac6..70fe1b3 100644 --- a/forum/utils/html.py +++ b/forum/utils/html.py @@ -55,10 +55,10 @@ def html2text(s, ignore_tags=(), indent_width=4, page_width=80): 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' % (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()), str(content), name)) def hyperlink(url, title, **attrs): return mark_safe('%s' % (url, " ".join('%s="%s"' % i for i in attrs.items()), title))