diff --git a/src/DivanteTranslationBundle/Controller/ObjectController.php b/src/DivanteTranslationBundle/Controller/ObjectController.php index 8d618ab..c3c3970 100644 --- a/src/DivanteTranslationBundle/Controller/ObjectController.php +++ b/src/DivanteTranslationBundle/Controller/ObjectController.php @@ -55,6 +55,7 @@ public function translateFieldAction(Request $request, ProviderFactory $provider $provider->setFormality($request->get('formality')); } + $data = strip_tags($data); $data = $provider->translate($data, $lang); } catch (\Throwable $exception) { return $this->adminJson([