private void FormatContent(MSGContent msg) { //msg.Content = FontTagRegex.Replace(msg.Content, "") // .Replace(" ", "") // msg.Content = FontTagRegex.Replace(msg.Content, ""); msg.Content = WebUtility.HtmlDecode(msg.Content) .Trim() .Replace("<br>", ""); msg.Content = IMGTagRegex.Replace(msg.Content, ImgTagEvel); }
private void ParseMessageTR(string tr) { Match match = MessageContentRegex.Match(tr); current = new MSGContent(); current.Date = currentDate.Add(TimeSpan.Parse(match.Groups["time"].Value)); current.Content = match.Groups["content"].Value; if (tr.StartsWith("<tr><td><div style=color:#42B475")) { current.IsBySelf = true; } }
public MessageDB(MSGContent msg) { this.InjectFrom(msg); }