I kind of figured the solution out by referring the link: https://magento.stackexchange.com/questions/124576/how-to-render-data-type-html-in-template-email-magento2 Thus instead of clipping the HTML tags out, we could directly render HTML content in the email template. We can use '|raw' with the param variable something like, {{trans "%dataDetails" dataDetails=$data.dataDetails|raw}}