From 386e835b867713daf3f48ef38dcc281f6a5bf411 Mon Sep 17 00:00:00 2001 From: Azareal Date: Tue, 19 Dec 2017 05:48:01 +0000 Subject: [PATCH] Fixed an issue with Cosora's WYSIWYG Editor. --- common/parser.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/parser.go b/common/parser.go index 890d60c7..c6042c26 100644 --- a/common/parser.go +++ b/common/parser.go @@ -165,6 +165,10 @@ func shortcodeToUnicode(msg string) string { } func PreparseMessage(msg string) string { + msg = strings.Replace(msg, "


", "
", -1) + msg = strings.Replace(msg, "

", "\n", -1) + msg = strings.Replace(msg, "

", "", -1) + msg = strings.Replace(msg, "
", "\n", -1) if Sshooks["preparse_preassign"] != nil { msg = RunSshook("preparse_preassign", msg) }