|
|
@ -353,13 +353,13 @@ func itemToHTML(feed *gofeed.Feed, item gofeed.Item) gomatrix.HTMLMessage { |
|
|
Body: fmt.Sprintf("%s: %s ( %s )", |
|
|
Body: fmt.Sprintf("%s: %s ( %s )", |
|
|
html.EscapeString(feed.Title), html.EscapeString(item.Title), html.EscapeString(item.Link)), |
|
|
html.EscapeString(feed.Title), html.EscapeString(item.Title), html.EscapeString(item.Link)), |
|
|
MsgType: "m.notice", |
|
|
MsgType: "m.notice", |
|
|
Format: "org.matrix.custom.html", |
|
|
|
|
|
|
|
|
Format: "org.matrix.custom.html", |
|
|
FormattedBody: fmt.Sprintf("<strong>%s</strong>:<br><a href=\"%s\"><strong>%s</strong></a>", |
|
|
FormattedBody: fmt.Sprintf("<strong>%s</strong>:<br><a href=\"%s\"><strong>%s</strong></a>", |
|
|
html.EscapeString(feed.Title), html.EscapeString(item.Link), html.EscapeString(item.Title)), |
|
|
html.EscapeString(feed.Title), html.EscapeString(item.Link), html.EscapeString(item.Title)), |
|
|
// <strong>FeedTitle</strong>:
|
|
|
|
|
|
// <br>
|
|
|
|
|
|
// <a href="url-of-the-entry"><strong>Title of the Entry</strong></a>
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// <strong>FeedTitle</strong>:
|
|
|
|
|
|
// <br>
|
|
|
|
|
|
// <a href="url-of-the-entry"><strong>Title of the Entry</strong></a>
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func ensureItemsHaveGUIDs(feed *gofeed.Feed) { |
|
|
func ensureItemsHaveGUIDs(feed *gofeed.Feed) { |
|
|
|