Support for the Ruby 2.4 series has ended. See here for reference.
Escapes &, “, > and < in string
# File webrick/htmlutils.rb, line 18 def escape(string) return "" unless string str = string.b str.gsub!(/&/n, '&') str.gsub!(/\"/n, '"') str.gsub!(/>/n, '>') str.gsub!(/</n, '<') str.force_encoding(string.encoding) end