Getting Error when trying to pass an HTML string with inline CSS attributes

Hello everyone!
Need help adding a string using the Append activity, the string i am trying to add is
string.Format("

<td bgcolor="#c5e1a5"style=“padding: 20px 0 30px 0; color: #153643; font-family: Arial, sans-serif; font-size: 16px; line-height: 20px;”><h1 style=“color:blue; font-size:30px; text-align:left;” >")
When i try to add i get an error

remove string format, and all quotes inside the html part should be apostrophes. from " to ’

1 Like

Hi @juan_otero,

Use single quotes like below

"
<td bgcolor='#c5e1a5' style='padding: 20px 0 30px 0; color: #153643; font-family: Arial, sans-serif; font-size: 16px; line-height: 20px;'><h1 style='color:blue; font-size:30px; text-align:left;' >"

Regards,
Arivu

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.