CoreFiles by mySites.guru
l10n.dev.js23 lines, 471 bytes, from wordpress-3.2.zip
Raw History Compare with 3.1.4
md5
790e0e24a1f8061d75e8af6e4a8b6f9b
sha1
3ee4dcdb427edeb4278ae9d90b41316c3798d829
sha256
0d0cadab88e972284316eef32443072594f8fb57b30651d62559c5a1d5e059f2
//Used to ensure that Entities used in L10N strings are correct
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;
}

The same content is in 19 releases, WordPress 3.1-beta1 to 3.2.1. See them all, or every version of this file.