diff --git a/internal/reader/media/media.go b/internal/reader/media/media.go index bd846100..4d9c3661 100644 --- a/internal/reader/media/media.go +++ b/internal/reader/media/media.go @@ -156,7 +156,7 @@ func (d *Description) HTML() string { return d.Description } - content := strings.Replace(d.Description, "\n", "
", -1) + content := strings.ReplaceAll(d.Description, "\n", "
") return textLinkRegex.ReplaceAllString(content, `${1}`) } diff --git a/internal/reader/rewrite/rewrite_functions.go b/internal/reader/rewrite/rewrite_functions.go index 122b2327..8b735661 100644 --- a/internal/reader/rewrite/rewrite_functions.go +++ b/internal/reader/rewrite/rewrite_functions.go @@ -302,7 +302,7 @@ func replaceTextLinks(input string) string { } func replaceLineFeeds(input string) string { - return strings.Replace(input, "\n", "
", -1) + return strings.ReplaceAll(input, "\n", "
") } func replaceCustom(entryContent string, searchTerm string, replaceTerm string) string {