Sha256: c43d8b109713e2196683490e6d101424c6c88a3915941be8ab1729c5cce4e397
Contents?: true
Size: 848 Bytes
Versions: 1
Compression:
Stored size: 848 Bytes
Contents
# String#unescape String#unescape is condition-relaxed String#undump. ## Usage ```ruby require 'string_unescape' puts '\u3059\u3054\u30FC\u3044'.unescape #=> すごーい puts '\xE3\x81\x9F\xE3\x81\xAE\xE3\x81\x97\xE3\x83\xBC'.unescape #=> たのしー puts '\u{1F43E}'.unescape #=> 🐾 ``` Note that you don't need to wrap the string with '"'. See [testcase](https://github.com/tadd/string_unescape/blob/master/test/test_unescape.rb) also. ## Supported Ruby versions 2.5.x or later. ## Installation Add this line to your application's Gemfile: ```ruby gem 'string_unescape' ``` And then execute: $ bundle Or install it yourself as: $ gem install string_unescape ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/tadd/string_unescape . ## License Ruby's. See [COPYING](COPYING).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
string_unescape-0.1 | README.md |