Class: Rpush::Daemon::Wns::CleanParamString
- Inherits:
-
Object
- Object
- Rpush::Daemon::Wns::CleanParamString
- 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(/&/, "&").gsub(/</, "<") \ .gsub(/>/, ">").gsub(/'/, "'").gsub(/"/, """) end |