From 6846150cb48d080112981633d6dddabef5ce4439 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sun, 25 Jul 2021 16:00:25 -0700 Subject: fixed bug with escaping html less than symbol for parsing content --- client.go | 4 +++- static/npost.html | 2 +- static/posts.html | 2 +- 3 files changed, 5 insertions(+), 3 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, `<`, "<") - nContent := ParseLinkComments(db, board, op, content, thread) + nContent = ParseLinkComments(db, board, op, nContent, thread) nContent = ParseCommentQuotes(nContent) diff --git a/static/npost.html b/static/npost.html index 3df4090..419a1a9 100644 --- a/static/npost.html +++ b/static/npost.html @@ -17,7 +17,6 @@ {{ end }} - {{ end }} {{ define "content" }} @@ -52,6 +51,7 @@ {{ define "script" }} + diff --git a/static/posts.html b/static/posts.html index 5810348..17421af 100644 --- a/static/posts.html +++ b/static/posts.html @@ -54,7 +54,7 @@ {{ end }} {{ end }} {{ range $replies.OrderedItems }} -
+
>>
-- cgit v1.2.3