Remove anchor tag from images

This commit is contained in:
Maurice Parker 2020-05-12 05:06:16 -05:00
parent 98ffbfd99b
commit cf91632d4a
1 changed files with 2 additions and 2 deletions

View File

@ -127,14 +127,14 @@ final class RedditLinkData: Codable {
}
if let imageSource = preview?.images?.first?.source, let imageURL = imageSource.url {
var html = "<a href=\"\(url)\"><img src=\"\(imageURL)\" "
var html = "<img src=\"\(imageURL)\" "
if postHint == "link" {
html += "class=\"nnw-nozoom\" "
}
if let width = imageSource.width, let height = imageSource.height {
html += "width=\"\(width)\" height=\"\(height)\" "
}
html += "></a>"
html += ">"
html += linkOutURL(url)
return html
}