internal void UpdateTextContent() { var content = templateContent; content = content.Replace("{foreground}", HtmlForeground.ToHtml()); content = content.Replace("{link_foreground}", LinkForeground.ToHtml()); content = content.Replace("{font_family}", HtmlFontFamily.ToString()); content = content.Replace("{font_size}", HtmlFontSize.ToString()); Text = content.Replace("{text}", HtmlText?.ToString()); }
internal void UpdateTextContent() { var content = string.Empty; if (!string.IsNullOrEmpty(templateContent)) { content = templateContent; } else if (HtmlText?.Contains("<html>") != true) { content = defaultTemplate; } content = content.Replace("{foreground}", ColorToHtml(HtmlForeground)); content = content.Replace("{link_foreground}", ColorToHtml(LinkForeground)); content = content.Replace("{font_family}", HtmlFontFamily.ToString()); content = content.Replace("{font_size}", HtmlFontSize.ToString()); Text = content.Replace("{text}", HtmlText?.ToString()); }