aboutsummaryrefslogtreecommitdiff
path: root/lib/render.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-08-23 12:39:53 -0700
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-08-23 12:39:53 -0700
commit679e08e0da36f829ffd8ec60e9e3beecab4b5925 (patch)
tree9c3c04293ad16d65df65beb7aae27cbe77dfc1e7 /lib/render.js
parent369f72529e83414099bdf037c3015cc9f61a038d (diff)
downloadpatchfoo-679e08e0da36f829ffd8ec60e9e3beecab4b5925.tar.gz
patchfoo-679e08e0da36f829ffd8ec60e9e3beecab4b5925.zip
Unescape HTML in image names for alt text
Diffstat (limited to 'lib/render.js')
-rw-r--r--lib/render.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render.js b/lib/render.js
index 045cf86..dbfd673 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -179,7 +179,7 @@ Render.prototype.imageUrl = function (ref) {
Render.prototype.getImageAlt = function (id, fallback) {
var link = this._mentionsByLink[id]
if (!link) return fallback
- var name = link.name || fallback
+ var name = u.unescapeHTML(link.name || fallback)
return name
+ (link.size != null ? ' (' + this.formatSize(link.size) + ')' : '')
}