By default, the translation engine does not take tags into account. By setting the tag_handling parameter to xml, the API will process XML input by extracting the text out of the structure, splitting it into individual sentences, translating them, and placing them back into the XML structure.
For the translation of HTML content please see HTML Handling

Sentences with Markup

If you want to translate text where individual parts are marked up, you can simply activate the XML engine by setting tag_handling to xml. The following examples show marked-up text and how it will be translated:
Request
Press <i>Continue</i> to advance to the next page.
Response
Drücken Sie <i>Weiter</i>, um zur nächsten Seite zu gelangen.
In general, placeholders are associated with the words preceding or following them in the source sentence and are then applied to their respective translations in the target sentence.

Ignored Tags

Use the ignore_tags parameter to specify that content within specific tags should not be translated. The example below uses ignore_tags=x to tell DeepL to preserve text between <x> and </x> tags as is.

Example: ignore \<x\> tag

Parameters
tag_handling=xml, ignore_tags=x
Request
Please open the page <x>Settings</x> to configure your system.
Response
Bitte öffnen Sie die Seite <x>Settings</x> um Ihr System zu konfigurieren.