DeepLcom/deepl-api-issues

[BUG] - DeepL is not putting content in their original place, it's putting inside an HTML tag (it shouldn't)

patrickReiis opened this issue · 1 comments

I don't know if I should create the issue here or in the main repo, so to be sure I'll create one here as well.

I am using the free tier, but it happens with the paid tier as well.

Steps to reproduce in Postman:
1 - Copy and paste the following endpoint, with a method of POST:

https://api-free.deepl.com/v2/translate

2 - Put the body as JSON, and copy and paste the following:

{"text": ["<span class=\"recipients-inline\"><span class=\"h-card\"><a class=\"u-url mention\" href=\"http://localhost:4036/@npub1vxd0dfst8ljvwva2egrpc53ve8ru78v8aaxfpravchkexmfmmu3sqnrs50\" rel=\"ugc\">@<span>npub1vxd</span></a></span> </span>Notícia como essa me embrulha o estômago."], "target_lang": "EN", "split_sentences": "1", "tag_handling": "html"}

3 - Click Send

As you'll see in the response, the word News is inside the <span> tag, but it shouldn't be.

This is a big deal because it hides the word News in the frontend UI.

Response returned: postman-response.json

Could you help sir? @daniel-jones-dev