From 66fc1a964b695f48e33d36c1fedb71bbd2a18c54 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Mon, 29 Apr 2024 09:52:30 +0700 Subject: [PATCH] reddit: get post now unescape title --- api/reddit/post.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/reddit/post.go b/api/reddit/post.go index ada20cb..7ea3715 100644 --- a/api/reddit/post.go +++ b/api/reddit/post.go @@ -2,6 +2,7 @@ package reddit import ( "fmt" + "html" "net/url" "path" "path/filepath" @@ -241,7 +242,7 @@ func (post *Post) GetAuthor() string { } func (post *Post) GetTitle() string { - return post.Data.Title + return html.UnescapeString(post.Data.Title) } func (post *Post) GetAuthorURL() string {