method
escape
escape(string)
public
Hide source
# File lib/webrick/htmlutils.rb, line 14 def escape(string) str = string ? string.dup : "" str.gsub!(/&/n, '&') str.gsub!(/\"/n, '"') str.gsub!(/>/n, '>') str.gsub!(/</n, '<') str end