summaryrefslogtreecommitdiff
path: root/js/lib
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-11-06 11:16:10 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-11-06 11:16:10 -0800
commitcdba827fbc2d6f9b8e4d496a2d65a8df276b1a18 (patch)
treeb8dd5c1d955715003038e1f4427698bb6d9b3d1d /js/lib
parentca8baa92556576731b59f793128d445dd7c76aa4 (diff)
Updated js writer to render plain text for alt attributes of images.
Diffstat (limited to 'js/lib')
-rw-r--r--js/lib/html-renderer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/html-renderer.js b/js/lib/html-renderer.js
index e1a6063..a676e3a 100644
--- a/js/lib/html-renderer.js
+++ b/js/lib/html-renderer.js
@@ -43,7 +43,7 @@ var renderInline = function(inline) {
return inTags('a', attrs, this.renderInlines(inline.label));
case 'Image':
attrs = [['src', this.escape(inline.destination, true)],
- ['alt', this.escape(this.renderInlines(inline.label))]];
+ ['alt', this.renderInlines(inline.label).replace(/\<[^>]*\>/g,'')]];
if (inline.title) {
attrs.push(['title', this.escape(inline.title, true)]);
}