public static string WrapUOHtmlColor(this string str, Color color, Color reset, bool close = true) { color = color.FixBlackTransparency(); if (close) { reset = reset.FixBlackTransparency(); return(String.Format("<basefont color=#{0:X6}>{2}<basefont color=#{1:X6}>", color.ToRgb(), reset.ToRgb(), str)); } return(String.Format("<basefont color=#{0:X6}>{1}", color.ToRgb(), str)); }
public static string WrapUOHtmlBG(this string str, Color color) { color = color.FixBlackTransparency(); return(String.Format("<bodybgcolor=#{0:X6}>{1}", color.ToRgb(), str)); }