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

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.