Fixed an issue with Cosora's WYSIWYG Editor.

This commit is contained in:
Azareal 2017-12-19 05:48:01 +00:00
parent 10a0c62823
commit 386e835b86
1 changed files with 4 additions and 0 deletions

View File

@ -165,6 +165,10 @@ func shortcodeToUnicode(msg string) string {
} }
func PreparseMessage(msg string) string { func PreparseMessage(msg string) string {
msg = strings.Replace(msg, "<p><br>", "<br>", -1)
msg = strings.Replace(msg, "<p>", "\n", -1)
msg = strings.Replace(msg, "</p>", "", -1)
msg = strings.Replace(msg, "<br>", "\n", -1)
if Sshooks["preparse_preassign"] != nil { if Sshooks["preparse_preassign"] != nil {
msg = RunSshook("preparse_preassign", msg) msg = RunSshook("preparse_preassign", msg)
} }