Otherwise internationalized image URLs would get broken by Nokogiri when stripping comments, which would prevent them from loading in the browser.
The normalization of the image URLs must happen before using Nokogiri to strip comments for the above reason.
↧