Strip punctuation (by default). If stripping, convert whitespace entity ref.
Strip punctuation (by default). If stripping, convert whitespace entity ref.

The implementation for entity conversion and punctuation removal came
from a similar plugin by Paul Schreiber. See:

https://github.com/paulschreiber/validates_word_count/blob/master/lib/validates_word_count.rb#L42

Sutto/word-count-validator