I kind ofhave figured out the solution out by referring to the link below:
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}}