fix: keep HTML escaped (#96)

This commit is contained in:
Solomon 2024-03-25 16:47:59 +00:00 committed by GitHub
parent 0d7355bd46
commit 89126a7377
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)