Unescaping HTML entities in 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.
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.