Flowdock
method

quote_string

Importance_0
Ruby latest stable (v2_5_5) - 0 notes - Class: Net::HTTPGenericRequest
quote_string(str, charset) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/net/http/generic_request.rb, line 287
  def quote_string(str, charset)
    str = str.encode(charset, fallback:->(c){'&#%d;'%c.encode("UTF-8").ord}) if charset
    str.gsub(/[\\"]/, '\\\&')
  end
Register or log in to add new notes.