public string GetMessageFormat(string text, string sender) { string hex = ColorUtility.ToHtmlStringRGBA(Color.cyan); string msg = text; string formatedText = ""; if (GetBlackListArray.Length > 0) { msg = ChatUtils.FilterWord(GetBlackListArray, text, replaceString); } formatedText = string.Format("<color=#{0}> [{2}]</color>{1}", hex, msg, sender); return(formatedText); }