revert variable name

This commit is contained in:
Jonathan 2025-02-13 17:29:01 +01:00
parent f9e16c7c36
commit 547c9a5567

View File

@ -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) {