Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamster/text_cleaner
Turns characters into their respective html encoding (good for fighting MS Word Copy/Paste)
https://github.com/jamster/text_cleaner
Last synced: 3 months ago
JSON representation
Turns characters into their respective html encoding (good for fighting MS Word Copy/Paste)
- Host: GitHub
- URL: https://github.com/jamster/text_cleaner
- Owner: jamster
- License: mit
- Created: 2012-09-20T20:20:53.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-08-17T19:52:02.000Z (about 8 years ago)
- Last Synced: 2024-05-31T19:59:47.546Z (6 months ago)
- Language: Ruby
- Size: 96.7 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TextCleaner
Simple gem does one thing, and one thing only... Turns funky chars such as [FILL IN HERE] to the proper HTML Encodings such as [FILL IN HERE].
## Installation
Add this line to your application's Gemfile:
gem 'text_cleaner'
And then execute:
$ bundle
Or install it yourself as:
$ gem install text_cleaner
## Usage
TextCleaner.clean(input_text)
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request