fix markdown

This commit is contained in:
aichy126 2023-03-20 18:17:26 +08:00
parent ecff4e02bc
commit 11f63de2cd
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ func Markdown2HTML(source string) string {
return source return source
} }
html := buf.String() html := buf.String()
filter := bluemonday.NewPolicy() filter := bluemonday.UGCPolicy()
html = filter.Sanitize(html) html = filter.Sanitize(html)
return html return html
} }