= private = protected
escape(string)
Escapes &, “, > and < in string
# File lib/webrick/htmlutils.rb, line 17 def escape(string) str = string ? string.dup : "" str.gsub!(/&/, '&') str.gsub!(/\"/, '"') str.gsub!(/>/, '>') str.gsub!(/</, '<') str end