reddit: get post now unescape title

This commit is contained in:
Tigor Hutasuhut 2024-04-29 09:52:30 +07:00
parent 95b1a2f393
commit 66fc1a964b

View file

@ -2,6 +2,7 @@ package reddit
import ( import (
"fmt" "fmt"
"html"
"net/url" "net/url"
"path" "path"
"path/filepath" "path/filepath"
@ -241,7 +242,7 @@ func (post *Post) GetAuthor() string {
} }
func (post *Post) GetTitle() string { func (post *Post) GetTitle() string {
return post.Data.Title return html.UnescapeString(post.Data.Title)
} }
func (post *Post) GetAuthorURL() string { func (post *Post) GetAuthorURL() string {