mtrimpe/jsHtmlToText — pull request #2 by vorushin (2011-11-07 14:39:23+00:00)
Title: Refactoring, tests, extensions

Hello!

I used your jsHtmlToText library, but needed to add major changes to the process of conversion. I deleted 3 old rules (conversion of tags, removal of tags and normalizing of spaces). But I created extensions and in tests/extensions.coffee) there are examples of restoring these 3 features.

I added tests too. I wrote them in CoffeeScript (because JS sucks with multiline string constants). It's possible to write new tests in pure JavaScript, but if you want to change some of existing .coffee tests you'll need to install coffee command to compile them.

Thank you very much for this library. Hope my changes will be relevant to it.