resolves #972 escape special chars in image alt text