diff --git a/src/wp-includes/js/wp-sanitize.js b/src/wp-includes/js/wp-sanitize.js index c03d163dac..8063c6b3f6 100644 --- a/src/wp-includes/js/wp-sanitize.js +++ b/src/wp-includes/js/wp-sanitize.js @@ -33,12 +33,12 @@ * @return Sanitized text. False on failure. */ sanitizeText: function( text ) { - var _text = wp.utils.stripTags( text ), + var _text = wp.sanitize.stripTags( text ), textarea = document.createElement( 'textarea' ); try { textarea.innerHTML = _text; - _text = wp.utils.stripTags( textarea.value ); + _text = wp.sanitize.stripTags( textarea.value ); } catch ( er ) {} return _text;