From 89126a73779407aa9228857826275a0bd6ed3dfd Mon Sep 17 00:00:00 2001 From: Solomon Date: Mon, 25 Mar 2024 16:47:59 +0000 Subject: [PATCH] fix: keep HTML escaped (#96) --- src/routes/question.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/question.go b/src/routes/question.go index 25293ad..5a70c7f 100644 --- a/src/routes/question.go +++ b/src/routes/question.go @@ -246,7 +246,7 @@ func extractAnswersData(doc *goquery.Document, domain string) ([]types.FilteredA // Process code blocks within the answer. processedAnswerBody := utils.ProcessHTMLBody(answerBodyHTML) - answer.Body = template.HTML(html.UnescapeString(processedAnswerBody)) + answer.Body = template.HTML(processedAnswerBody) // Extract author information and timestamp. extractAnswerAuthorInfo(s, &answer, domain)