Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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