ssut/telegram-rb

View on GitHub
lib/ext/string.rb

Summary

Maintainability
A
0 mins
Test Coverage
# encoding: utf-8

class String
  def escape
    newstr = gsub("\n", "\\n")
    newstr.gsub!('"', '\"')
    newstr
  end
end