POEditor imports the strings that contain HTML exactly how they are in your file and exports the translations exactly how they appear in the user interface.
When you use the Automatic Translation feature, your strings are sent to Google/Microsoft/DeepL (depending on which provider you choose) for translation via API. The exact result of their machine translation is then returned to your project. We have no control over what and how Google's, Microsoft's or DeepL's machine translation engines translate.
In case the Google/Microsoft/DeepL API returns any broken HTML tags to you, you can preview the HTML in your strings to fix it more easily.