micromarkdown.js icon indicating copy to clipboard operation
micromarkdown.js copied to clipboard

URLs and other attributes not being escaped

Open davidearl opened this issue 8 years ago • 0 comments

[link](http://example.com?one=one&two=two) (and similar) should translate as <a href="http://example.com?one=one&amp;two=two>...</a> but it doesn't, it isn't escaping the ampersand.

Similarly an ampersand in title or alt for an image is not being escaped, and nor are double quotes (if you could get those in there in the first place, as there is a separate bug preventing this which I shall add in a moment).

davidearl avatar Jun 23 '16 10:06 davidearl