aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'client.go')
-rw-r--r--client.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/client.go b/client.go
index 03f54fa..930cd6f 100644
--- a/client.go
+++ b/client.go
@@ -714,8 +714,10 @@ func ParseAttachment(obj ObjectBase, catalog bool) template.HTML {
}
func ParseContent(db *sql.DB, board Actor, op string, content string, thread ObjectBase) template.HTML {
+
+ nContent := strings.ReplaceAll(content, `<`, "&lt;")
- nContent := ParseLinkComments(db, board, op, content, thread)
+ nContent = ParseLinkComments(db, board, op, nContent, thread)
nContent = ParseCommentQuotes(nContent)