unescape snippets

Unescaping HTML entities in Ruby

Tagged html, entities, unescape  Languages ruby

Example of how to unescape HTML entities and convert them to text with Nokogiri:

Nokogiri::HTML.fragment(’© äö') => © äö

There's also the html-entities ruby gem.