feat(chat): support line breaks and pasted content. Closes #3108

This commit is contained in:
Gabe Kangas
2023-06-27 14:45:45 -07:00
parent bd6e263eb9
commit a354787a9e
7 changed files with 239 additions and 92 deletions

View File

@@ -149,7 +149,7 @@ func sanitize(raw string) string {
// Allow breaks
p.AllowElements("br")
p.AllowElementsContent("p")
p.AllowElements("p")
// Allow img tags from the the local emoji directory only
p.AllowAttrs("src").Matching(_sanitizeReSrcMatch).OnElements("img")