mtibben/html2text — pull request #13 by maximkou (2014-06-05 07:17:17+00:00)
Title: Added method for adding custom search and replace rules

It is often necessary to add their own rules to search and replace, e.g. replace `»` with `»`, but library can not do it without creating a wrapper.

This PR add method `add_ent_search_and_replace` for adding custom replacement rules.
This method accept one argument of type array ($rules), which must be looks like this:
```php
array(
'/«/i' => '«',
'/»/i' => '»'
)
```

Usage example there is in CustomSearchRuleTest.