lib/galakei/email.rb in galakei-0.14.3 vs lib/galakei/email.rb in galakei-0.14.4
- old
+ new
@@ -41,10 +41,10 @@
doc.css("head").each do |node|
node.unlink
end
doc.css("img").each do |node|
if node['src'] !~ /^cid:/
- node.after(node['alt']) if node['alt']
+ node.after(doc.create_text_node(node['alt'])) if node['alt'].present?
node.unlink
end
end
encoding = doc.meta_encoding || "UTF-8"
res = "<html><head>"