Change dependency on nokogiri and htmlentities

Provide compatibility with other gems that depends on nokogiri