diff --git a/editor.go b/editor.go index 5d1552a..4eb0049 100644 --- a/editor.go +++ b/editor.go @@ -12,7 +12,6 @@ import ( "strings" "github.com/gorilla/websocket" - "github.com/microcosm-cc/bluemonday" "go.goblog.app/app/pkgs/contenttype" "gopkg.in/yaml.v3" ) @@ -86,8 +85,6 @@ func (a *goBlog) createMarkdownPreview(blog string, markdown []byte) (rendered [ if err != nil { return nil, err } - // Sanitize HTML - rendered = bluemonday.UGCPolicy().SanitizeBytes(rendered) return } diff --git a/templates/editor.gohtml b/templates/editor.gohtml index 4bbd88a..9124786 100644 --- a/templates/editor.gohtml +++ b/templates/editor.gohtml @@ -1,4 +1,5 @@ {{ define "title" }} + {{ string .Blog.Lang "editor" }} - {{ mdtitle .Blog.Title }} {{ end }}