Class: Rpush::Daemon::Wns::CleanParamString

Inherits:
Object
  • Object
show all
Defined in:
lib/rpush/daemon/wns/toast_request.rb

Class Method Summary collapse

Class Method Details

.clean(string) ⇒ Object



51
52
53
54
# File 'lib/rpush/daemon/wns/toast_request.rb', line 51

def self.clean(string)
  string.gsub(/&/, "&amp;").gsub(/</, "&lt;") \
    .gsub(/>/, "&gt;").gsub(/'/, "&apos;").gsub(/"/, "&quot;")
end