preview sanitize after md reneder

This commit is contained in:
Umputun
2018-05-06 17:39:31 -05:00
parent a78b3a2d6d
commit b1494cf97f
+1 -1
View File
@@ -165,8 +165,8 @@ func (s *Rest) previewCommentCtrl(w http.ResponseWriter, r *http.Request) {
return
}
comment.Sanitize()
comment.Text = string(blackfriday.Run([]byte(comment.Text), blackfriday.WithExtensions(mdExt)))
comment.Sanitize()
render.HTML(w, r, comment.Text)
}