I have figured out the solution by referring to the link below:

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}}