1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-09 11:42:28 +01:00

Replace diacritical grave with HTML code

This commit is contained in:
Florian Keller 2017-02-23 17:32:43 +01:00
parent 8bcec11817
commit f16bc03439
No known key found for this signature in database
GPG Key ID: 5570D938BDA00C34

View File

@ -60,22 +60,22 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<script>
@if (Session::has('info'))
toastr["info"]("{{session('info')}}", "Info")
toastr["info"](`{{str_replace('`', '&#96;', session('info'))}}`, "Info")
@endif
@if (Session::has('error'))
toastr["error"]("{{session('error')}}", "Error")
toastr["error"](`{{str_replace('`', '&#96;', session('error'))}}`, "Error")
@endif
@if (Session::has('warning'))
toastr["warning"]("{{session('warning')}}", "Warning")
toastr["warning"](`{{str_replace('`', '&#96;', session('warning'))}}`, "Warning")
@endif
@if (Session::has('success'))
toastr["success"]("{{session('success')}}", "Success")
toastr["success"](`{{str_replace('`', '&#96;', session('success'))}}`, "Success")
@endif
@if (count($errors) > 0)
// Handle Lumen validation errors
@foreach ($errors->all() as $error)
toastr["error"]("{{$error}}", "Error")
toastr["error"](`{{str_replace('\`', $error)}}`, "Error")
@endforeach
@endif
</script>