The problem here is that the HTML tags in the template input are automatically escaped when generating the template. I think it can also be a security issue when HTML is given as input.
So, I suggest two options for a workaround:
Configure the HTML in the template and only set the text values as input –> the HTML can be shown in the mail text