Skip to content

Commit

Permalink
Merge pull request #20 from DivanteLtd/feature
Browse files Browse the repository at this point in the history
Bugfix for unescaped html tags in data being sent to translation provider
  • Loading branch information
Kuba Płaskonka authored Jul 8, 2021
2 parents 85d73e4 + 446d123 commit 3794987
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 3794987

Please sign in to comment.