';} var temp = supplant(conHtml,news);arr.push($(temp));} return arr;} function supplant(template, values, pattern) { pattern = pattern || /\{([^\{\}]*)\}/g;return template.replace(pattern, function(a, b) { var p = b.split('.'), r = values;try { for (var s in p) { if (p.hasOwnProperty(s) ) { r = r[p[s]];} } } catch (e) { r = a;} return (typeof r === 'string' || typeof r === 'number') ? r : a;}) }