The 'min_words' and 'max_words' validators don't work for HTML textareas. The attached patch allows them to.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pjcdawkins’s picture

New patch which deals with   entities.

pjcdawkins’s picture

Removed redundant [] in regex.

Liam Morland’s picture

pjcdawkins’s picture

Now I'm looking at it again, I think we should use str_word_count(). A little follow-up issue for that: #2029435: Use str_word_count() to count words

Liam Morland’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Fixed » Patch (to be ported)
Liam Morland’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Issue summary: View changes
Status: Patch (to be ported) » Closed (fixed)

Drupal 6 is no longer supported.