fix(subParsers/images): fix alt attribute not being escaped correctly

This commit is contained in:
Estevão Soares dos Santos 2015-07-14 20:49:46 +01:00
parent 5f043ca46d
commit 542194e916

View File

@ -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 = '<img src="' + url + '" alt="' + altText + '"';