diff --git a/src/wp-includes/js/mce-view.js b/src/wp-includes/js/mce-view.js index 750de38f4e..563ef5967c 100644 --- a/src/wp-includes/js/mce-view.js +++ b/src/wp-includes/js/mce-view.js @@ -28,25 +28,10 @@ window.wp = window.wp || {}; 'use strict'; var views = {}, - instances = {}, - textarea = document.createElement( 'textarea' ); + instances = {}; wp.mce = wp.mce || {}; - /** - * Decode HTML entities in a givin string. - * - * @param {String} html The string to decode. - */ - function decodeHTML( html ) { - textarea.innerHTML = html; - html = textarea.value; - - textarea.innerHTML = textarea.value = ''; - - return html; - } - /** * wp.mce.views * @@ -104,7 +89,7 @@ window.wp = window.wp || {}; * @param {String} content The string to scan. */ setMarkers: function( content ) { - var pieces = [ { content: decodeHTML( content ) } ], + var pieces = [ { content: content } ], self = this, current;