Title: nbernhard's Replies | WordPress.org

---

# nbernhard

  [  ](https://wordpress.org/support/users/nbernhard/)

 *   [Profile](https://wordpress.org/support/users/nbernhard/)
 *   [Topics Started](https://wordpress.org/support/users/nbernhard/topics/)
 *   [Replies Created](https://wordpress.org/support/users/nbernhard/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/nbernhard/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/nbernhard/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/nbernhard/engagements/)
 *   [Favorites](https://wordpress.org/support/users/nbernhard/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Limit Word Count](https://wordpress.org/support/topic/limit-word-count/)
 *  [nbernhard](https://wordpress.org/support/users/nbernhard/)
 * (@nbernhard)
 * [14 years ago](https://wordpress.org/support/topic/limit-word-count/#post-2778188)
 * For starters, this function would return the string without the HTML tags:
 *     ```
       jQuery.fn.stripTags = function () {
           return this.replaceWith(this.html().replace(/<\/?[^>]+>/gi, ''));
       };
       ```
   
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Limit Word Count](https://wordpress.org/support/topic/limit-word-count/)
 *  [nbernhard](https://wordpress.org/support/users/nbernhard/)
 * (@nbernhard)
 * [14 years ago](https://wordpress.org/support/topic/limit-word-count/#post-2778187)
 * Could you use jQuery or something similar to disable the ‘publish’ button until
   the word count is acceptable?
 * You would still need a fallback for those who do not use Javascript, but this
   may be a good solution to start with.

Viewing 2 replies - 1 through 2 (of 2 total)