In Files

  • webrick/htmlutils.rb

Methods

Class/Module Index [+]

Quicksearch

WEBrick::HTMLUtils

Public Class Methods

escape(string) click to toggle source
 
               # File webrick/htmlutils.rb, line 14
def escape(string)
  str = string ? string.dup : ""
  str.gsub!(/&/, '&')
  str.gsub!(/\"/, '"')
  str.gsub!(/>/, '>')
  str.gsub!(/</, '&lt;')
  str
end