# File lib/html/pipeline/emoji_filter.rb, line 16 def call doc.search('.//text()').each do |node| content = node.text next unless content.include?(':') next if has_ancestor?(node, ignored_ancestor_tags) html = emoji_image_filter(content) next if html == content node.replace(html) end doc end