- Issue created by @smellydelli
With the default settings DeepL doesn't take HTML tags into account and will return broken HTML.
DeepL has a option to enable tag handling for HTML or XML:
https://developers.deepl.com/docs/xml-and-html-handling/html
It would be awesome to have an option to enable it within the DeepL settings form.
I believe it's possible to do something like:
$options = [
'tag_handling' => 'html',
];
try {
$result = $translator->translateText($text, $from, $to, $options);
}
Active
1.0
Code