API incorrectly handle tag_handling=xml with ignore_tags
Ahmed-Aboud opened this issue · 1 comments
Ahmed-Aboud commented
Update: same issue happens with tag_handling=html too
When calling the endpoint
https://api.deepl.com/v2/translate?tag_handling=xml&ignore_tags=x
German
Wo befindet sich das <x>Event</x>
Translated IT response
Dove si trova il <x>Event</x>
but when it is followed by any character the ignored_tag is moved before the sentence for example
German
Wo befindet sich das <x>Event</x> ?
Translated IT response
<x>Event</x> Dove si trova la sede?
Ahmed-Aboud commented
wrapping the ignored tag by another tag makes it work
Wo befindet sich das <wrap><x>Event</x></wrap>