]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/utils.dev.js
Wordpress 3.1
[autoinstalls/wordpress.git] / wp-admin / js / utils.dev.js
index 3f6925bfec40fbf850334fd4b119b646fa0f40af..30446c1debdeafe486ee387d697d3027bbe55d6c 100644 (file)
@@ -1,26 +1,4 @@
 // utility functions
-function convertEntities(o) {
-       var c, v;
-       c = function(s) {
-               if (/&[^;]+;/.test(s)) {
-                       var e = document.createElement("div");
-                       e.innerHTML = s;
-                       return !e.firstChild ? s : e.firstChild.nodeValue;
-               }
-               return s;
-       }
-
-       if ( typeof o === 'string' ) {
-               return c(o);
-       } else if ( typeof o === 'object' ) {
-               for (v in o) {
-                       if ( typeof o[v] === 'string' ) {
-                               o[v] = c(o[v]);
-                       }
-               }
-       }
-       return o;
-}
 
 var wpCookies = {
 // The following functions are from Cookie.js class in TinyMCE, Moxiecode, used under LGPL.