Jul-19-2023, 01:32 PM
Quote:If I try to use single quote, it does not print/display the table at all in my e-mail body.Odd as it sounds, this probably indicates the replace is working. As I mentioned, your replacement string is removing values from your table. This code removes "<td=TEXT B>", replacing it with "<td style=\"background-color:##FF0000\">"
html = html.replace("<td=TEXT B>","<td style=\"background-color:##FF0000\">")Don't you need both color an content?