Skip to content

Commit

Permalink
fix(subParsers/images): fix alt attribute not being escaped correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
tivie committed Jul 14, 2015
1 parent 5f043ca commit 542194e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/subParsers/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 + '"';

Expand Down

0 comments on commit 542194e

Please sign in to comment.