Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more
Escapes &, “, > and < in string
# File webrick/htmlutils.rb, line 17
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