Fix for command line input
fix regex that caused Premailer to identify HTML as URI if the HTML has a line beginning with a URI
undo update to one of the regexes
Sort style attributes
Use input_encoding to set encoding with Nokogiri
resolve_link handles HTML with embedded URI

When premailer was provided with a HTML string, resolve_link was choking
if the HTML contained a link on a single line. This is because
resolve_link and local_data? were both matching their URL regexp against
start of line instead of start of string to determine if the string was
a URL.

In general, \A provides the strictest match, and ^ is rarely needed.

Change-Id: Ib2ece04fa8dcf1f877c44ba39b7e9063c179185f
Reviewed-on: https://gerrit.causes.com/10477
Reviewed-by: Lann Martin <lann@causes.com>
Reviewed-by: Greg Hurrell <greg@causes.com>
Tested-by: Greg Hurrell <greg@causes.com>
Ignore style tags with data-premailer=ignore tag
Handle the case when there are new lines inside a <a> tag

Also, remove mailto: from links href attribute.
Support to ignore some CSS blocks in both Nokogiri and Hpricot.
remove extra bracket
add mailchimp reset css ignore logic to nokogiri from hpricot
Merge remote-tracking branch 'bookwyrm/master' into media-query-fix

Conflicts:
	lib/premailer/premailer.rb
Fix (somewhat) carriage returns incorrectly encoded as decimal as well as hex.

This should help people stuck with #81 and #92
Correctly check the adapter to pick the style tags for data-premailer="ignore" style attributes.
Hack the CDATA wrapper out of <style> tags
Cleanup failing tests (re-enable shorthand CSS, Allow unmerged rules like :hover in the <style> but not inline). Build on css_parser support for media queries in the <style> tag.
Add a test for unmerged media queries in the <style> tag
Release adopted premailer as regru-premailer gem.
Removed colspan from vendor-specific attributes. See https://github.com/alexdunae/premailer/pull/75#issuecomment-2114272
Merge remote-tracking branch 'RealHQ/html_with_uri'