Skip to content

Commit

Permalink
stop creating broken HTML when the alt text part of an image contains…
Browse files Browse the repository at this point in the history
… special Markdown chars
  • Loading branch information
balpha committed Oct 22, 2011
1 parent db8745c commit f08405f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Markdown.Converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ else
}
}

alt_text = alt_text.replace(/"/g, """);
alt_text = escapeCharacters(alt_text.replace(/"/g, """), "*_[]()");
url = escapeCharacters(url, "*_");
var result = "<img src=\"" + url + "\" alt=\"" + alt_text + "\"";

Expand Down

0 comments on commit f08405f

Please sign in to comment.