So click on the table tab where you want to create a new field. Then click "Settings" at the far left underneath the table name.
On the next page, select "Fields".
On the Fields page, click the green button, "+New Fields"
You want to create a formula text field.
Paste in the code provided, check box the option to allow HTML.
Click SAVE.
Insert your new field into the report.
HTML will not export to csv.