forked from jason/cpolis
revert variable name
This commit is contained in:
parent
f9e16c7c36
commit
547c9a5567
@ -35,9 +35,9 @@ func ConvertToHTML(md string) (string, error) {
|
||||
// Bluemonday-Policy anpassen, sodass id-Attribute auf h1-h6 erlaubt sind.
|
||||
p := bluemonday.UGCPolicy()
|
||||
p.AllowAttrs("id").OnElements("h1", "h2", "h3", "h4", "h5", "h6")
|
||||
htmlOutput := p.Sanitize(buf.String())
|
||||
html := p.Sanitize(buf.String())
|
||||
|
||||
return htmlOutput, nil
|
||||
return html, nil
|
||||
}
|
||||
|
||||
func ConvertToPlain(md string) (string, error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user