Module WEBrick::HTMLUtils
In: webrick/htmlutils.rb

Methods

escape  

Public Instance methods

[Source]

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

[Validate]