You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<html><body><div><ahref="01.html">Chapter I. Margaret Makes Herself at Home</a></div><div><ahref="02.html">Chapter II. Stephen's Life Goes On</a></div></body></html>
translate_text(text, source_lang='EN', target_lang='DE', tag_handling='html') for the above text returns this:
<html><body><div><ahref="01.html">Kapitel I. Margaret macht es sich gemüt</a>lich </div><div><ahref="02.html">Kapitel II. Stephens Leben geht</a>weiter </div></body></html>
As you can see the content of <a> has lost its tail (lich, weiter).
If we use tag_handling='xml' all works as expected:
<html><body><div><ahref="01.html">Kapitel I. Margaret macht es sich gemütlich</a></div><div><ahref="02.html">Kapitel II. Stephens Leben geht weiter</a></div></body></html>
If we replace <div> with <p> there will be no issue either.
The text was updated successfully, but these errors were encountered:
text=
translate_text(text, source_lang='EN', target_lang='DE', tag_handling='html') for the above text returns this:
As you can see the content of
<a>
has lost its tail (lich, weiter).If we use tag_handling='xml' all works as expected:
If we replace
<div>
with<p>
there will be no issue either.The text was updated successfully, but these errors were encountered: