aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/render.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/render.js b/lib/render.js
index deaf061..aade2f2 100644
--- a/lib/render.js
+++ b/lib/render.js
@@ -31,16 +31,16 @@ MdRenderer.prototype.image = function (ref, title, text) {
controls: 'controls',
src: this.render.toUrl(ref),
alt: alt,
- title: title || undefined
+ title: u.unescapeHTML(title) || undefined
}) : /^audio:/.test(text) ? h('audio', {
controls: 'controls',
src: this.render.toUrl(ref),
alt: alt,
- title: title || undefined
+ title: u.unescapeHTML(title) || undefined
}) : h('img', {
src: this.render.imageUrl(ref),
alt: alt,
- title: title || undefined
+ title: u.unescapeHTML(title) || undefined
})).outerHTML
}