Add an option to basicFormatting to skip links

SQUASH
This commit is contained in:
Daniele Tonon
2023-11-28 19:51:43 +01:00
parent 35d053fc87
commit 8a99017259
5 changed files with 13 additions and 9 deletions

View File

@@ -77,7 +77,7 @@ func (ee EnhancedEvent) RssTitle() string {
func (ee EnhancedEvent) RssContent() string {
content := ee.event.Content
content = basicFormatting(html.EscapeString(content), true, false)
content = basicFormatting(html.EscapeString(content), true, false, false)
content = renderQuotesAsHTML(context.Background(), content, false)
if ee.IsReply() {
nevent, _ := nip19.EncodeEvent(ee.Reply().Value(), ee.relays, ee.event.PubKey)