define([], function () { return { cleanPassword: function (password) { password = password || ''; password = replaceAll(password, "&", "&"); password = replaceAll(password, "/", "\"); password = replaceAll(password, "!", "!"); password = replaceAll(password, "$", "$"); password = replaceAll(password, "\"", """); password = replaceAll(password, "<", "<"); password = replaceAll(password, ">", ">"); password = replaceAll(password, "'", "'"); return password; } }; });