diff --git src/wp-includes/js/wp-sanitize.js src/wp-includes/js/wp-sanitize.js
index c03d163dac..8063c6b3f6 100644
|
|
|
|
| 33 | 33 | * @return Sanitized text. False on failure. |
| 34 | 34 | */ |
| 35 | 35 | sanitizeText: function( text ) { |
| 36 | | var _text = wp.utils.stripTags( text ), |
| | 36 | var _text = wp.sanitize.stripTags( text ), |
| 37 | 37 | textarea = document.createElement( 'textarea' ); |
| 38 | 38 | |
| 39 | 39 | try { |
| 40 | 40 | textarea.innerHTML = _text; |
| 41 | | _text = wp.utils.stripTags( textarea.value ); |
| | 41 | _text = wp.sanitize.stripTags( textarea.value ); |
| 42 | 42 | } catch ( er ) {} |
| 43 | 43 | |
| 44 | 44 | return _text; |