In v3 (microsoft api version 3), if we do not specify textType=html, the API treats characters like < and > as literal text, which can lead to the translation of the tags themselves and also broken tags.
Set textType to html when requesting translation.