From 542194e916e68e157053f6ca26ea1ef9c51689a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estev=C3=A3o=20Soares=20dos=20Santos?= Date: Tue, 14 Jul 2015 20:49:46 +0100 Subject: [PATCH] fix(subParsers/images): fix alt attribute not being escaped correctly --- src/subParsers/images.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/subParsers/images.js b/src/subParsers/images.js index 0dc6b04e..8dde87b4 100644 --- a/src/subParsers/images.js +++ b/src/subParsers/images.js @@ -41,6 +41,7 @@ showdown.subParser('images', function (text, options, globals) { } altText = altText.replace(/"/g, '"'); + altText = showdown.helper.escapeCharacters(altText, '*_', false); url = showdown.helper.escapeCharacters(url, '*_', false); var result = '