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