lib/ahoy_email/processor.rb in ahoy_email-2.0.2 vs lib/ahoy_email/processor.rb in ahoy_email-2.0.3
- old
+ new
@@ -51,10 +51,10 @@
def track_links
if html_part?
part = message.html_part || message
- doc = Nokogiri::HTML::DocumentFragment.parse(part.body.raw_source)
+ doc = Nokogiri::HTML::Document.parse(part.body.raw_source)
doc.css("a[href]").each do |link|
uri = parse_uri(link["href"])
next unless trackable?(uri)
# utm params first
if options[:utm_params] && !skip_attribute?(link, "utm-params")