mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
fix(subParsers/images): fix alt attribute not being escaped correctly
This commit is contained in:
parent
5f043ca46d
commit
542194e916
|
@ -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 + '"';
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user