I have not been able to search for a Node that has an HTML entity as a value.
I have this HTML fragment:
require 'nokogiri'
DATA = "<p>A paragraph <ul><li>Item 1</li><li>⊕</li><li>Mango</li></ul></p>"
doc = Nokogiri::HTML(DATA)
p doc.xpath('//li[contains(text(), "Man")]') => This returns a NodeSet
p doc.xpath('//li[contains(text(), "8853")]') => This returns 'Nil'
I am not able to figure out why the second statement returns NIL and how to fix it.