$(document).ready (function () { $("#main li strong").each (function () { htmlStr = $(this).html (); newStr = htmlStr; newStr = newStr.replace ("XOMBO Certified", "XOMBO Certified"); newStr = newStr.replace ("XOMBO Platform","XOMBO Platform"); if (newStr != htmlStr) { $(this).html (newStr); $("span:contains('XOMBO Certified')").replaceWith ("\"XOMBO"); $("span:contains('XOMBO Platform')").replaceWith ("\"XOMBO"); } return; }); $("#main li strong").each (function () { var htmlStr = $(this).html (); var newStr = htmlStr; newStr = newStr.replace ("XOMBO University","XOMBO University"); if (newStr != htmlStr) { $(this).html (newStr); $("span:contains('XOMBO University')").replaceWith ("\"XOMBO"); return; } newStr = newStr.replace ("XOMB(OS)", "XOMB(OS)"); if (newStr != htmlStr) { $(this).html (newStr); $("span:contains('XOMB(OS)')").replaceWith ("\"XOMB(OS)\""); return; } newStr = newStr.replace ("XOMBO","XOMBO"); if (newStr != htmlStr) { $(this).html (newStr); $("span:contains('XOMBO')").replaceWith ("\"XOMBO\""); return; } return; }); $("#main h1").each (function () { $(this).html ($(this).html ().replace (/XOMBO\ University/g,"XOMBO University")); }); $("#main h1").each (function () { $(this).html ($(this).html ().replace (/XOMBO\ Platform/g,"XOMBO Platform")); }); $("#main h1").each (function () { $(this).html ($(this).html ().replace (/XOMBO\ Certified/g,"XOMBO Certified")); }); $("#main h1").each (function () { $(this).html ($(this).html ().replace (/XOMBO/g,"XOMBO")); }); $("#main h1").each (function () { $(this).html ($(this).html ().replace (/XOMB\(OS\)/g,"XOMB(OS)")); }); $("span:contains('XOMBO University')").replaceWith ("\"XOMBO"); $("span:contains('XOMBO Platform')").replaceWith ("\"XOMBO"); $("span:contains('XOMBO Certified')").replaceWith ("\"XOMBO"); $("span:contains('XOMBO')").replaceWith ("\"XOMBO\""); $("span:contains('XOMB(OS)')").replaceWith ("\"XOMB(OS)\""); });