I have this piece of code:
enter else
{
rowData = rowData.Equals("False") || rowData.Equals("True") ? rowData.Replace("False", "No").Replace("True", "Yes") : rowData;
rowData = rowData.Replace("<img", $"<img width='{contentWidth}' height='100%' ");
rowData = rowData.Replace("font-size:", "").Replace("font-family:", "");
rowData = $"<div style= 'font-size:{builder.Font.Size}pt;font-family:{builder.Font.Name};'>{rowData}</div>";
builder.InsertHtml(rowData);
}
But, I need to make changes in attributes color, font-weight, font-style and text-align as well. For color, for example, I tried .Replace("color:","") and in the next line color:{builder.Font.Color};, but I did get it.