- post_author = post.author.username
- comment_author = comment.author
- question_url = question.get_absolute_url()
- question_title = question.title
- safe_body = html.html2text(comment.comment)
+ post_author = smart_str(post.author.username)
+ safe_post_author = html.mark_safe(smart_str(post.author.username))
+ comment_author = html.mark_safe(smart_str(comment.author))
+ question_title = html.mark_safe(smart_str(question.title))
+ safe_body = html.html2text(smart_str(comment.comment))
+ author_link = html.objlink(comment.author, style=settings.EMAIL_ANCHOR_STYLE)
+ question_link = html.objlink(question, style=settings.EMAIL_ANCHOR_STYLE)