mirror of https://gitee.com/answerdev/answer.git
fix markdown
This commit is contained in:
parent
ecff4e02bc
commit
11f63de2cd
|
@ -33,7 +33,7 @@ func Markdown2HTML(source string) string {
|
|||
return source
|
||||
}
|
||||
html := buf.String()
|
||||
filter := bluemonday.NewPolicy()
|
||||
filter := bluemonday.UGCPolicy()
|
||||
html = filter.Sanitize(html)
|
||||
return html
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue