diff --git a/wp-admin/js/word-count.js b/wp-admin/js/word-count.js index 6be48ba506..9e3c1dff74 100644 --- a/wp-admin/js/word-count.js +++ b/wp-admin/js/word-count.js @@ -21,7 +21,7 @@ if ( t.block ) return; t.block = 1; - tx = tx.replace( /^\s*|\s*$/g, '' ); + setTimeout( function() { if ( tx ) { tx = tx.replace( /<.[^<>]*?>/g, ' ' ).replace( / /gi, ' ' );