tinymce.full.js
function (text) {
        return text.replace(entityRegExp, function (all, numeric) {
          if (numeric) {
            if (numeric.charAt(0).toLowerCase() === 'x') {
              numeric = parseInt(numeric.substr(1), 16);
            } else {
              numeric = parseInt(numeric, 10);
            }

            // Support upper UTF
            if (numeric > 0xFFFF) {
              numeric -= 0x10000;

              return String.fromCharCode(0xD800 + (numeric >> 10), 0xDC00 + (numeric & 0x3FF));
            }

            return asciiMap[numeric] || String.fromCharCode(numeric);
          }

          return reverseEntities[all] || namedEntities[all] || nativeDecode(all);
        });
      }
function (text) {
        return text.replace(entityRegExp, function (all, numeric) {
          if (numeric) {
            if (numeric.charAt(0).toLowerCase() === 'x') {
              numeric = parseInt(numeric.substr(1), 16);
            } else {
              numeric = parseInt(numeric, 10);
            }

            // Support upper UTF
            if (numeric > 0xFFFF) {
              numeric -= 0x10000;

              return String.fromCharCode(0xD800 + (numeric >> 10), 0xDC00 + (numeric & 0x3FF));
            }

            return asciiMap[numeric] || String.fromCharCode(numeric);
          }

          return reverseEntities[all] || namedEntities[all] || nativeDecode(all);
        });
      }
function ( text ) { return text . replace ( entityRegExp , function ( all , numeric ) { if ( numeric ) { if ( numeric . charAt ( 0 ) . toLowerCase ( ) === 'x' ) { numeric = parseInt ( numeric . substr ( 1 ) , 16 ) ; } else { numeric = parseInt ( numeric , 10 ) ; } // Support upper UTF if ( numeric > 0xFFFF ) { numeric -= 0x10000 ; return String . fromCharCode ( 0xD800 + ( numeric >> 10 ) , 0xDC00 + ( numeric & 0x3FF ) ) ; } return asciiMap [ numeric ] || String . fromCharCode ( numeric ) ; } return reverseEntities [ all ] || namedEntities [ all ] || nativeDecode ( all ) ; } ) ; }
Decodes the specified string, this will replace entities with raw UTF characters.

@method decode
@param {String} text Text to entity decode.
@return {String} Entity decoded string.
Decodes the specified string this will replace entities with raw UTF characters .