I have a javascript variable that fills with Laravel translation system:
'are_you_sure' => '¿Remplacer l\'arbre?',
and then in JS:
swal({
title: "{{ trans('msg.are_you_sure') }}",
...
});
And it appears to me:
¿Remplacer l'arbre?
EDIT:
Sorry for htmlspecialchars
, the thing is it doesn't change removing htmlspecialchars
, adding it, or adding htmlspecialchars_decode