1 //Used to ensure that Entities used in L10N strings are correct
2 function convertEntities(o) {
5 if (/&[^;]+;/.test(s)) {
6 var e = document.createElement("div");
8 return !e.firstChild ? s : e.firstChild.nodeValue;
13 if ( typeof o === 'string' ) {
15 } else if ( typeof o === 'object' ) {
17 if ( typeof o[v] === 'string' ) {