Skip to content

Commit 771ff23

Browse files
authored
added tags-escaping @ editable component
1 parent 8e04ea8 commit 771ff23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/components/editable.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<div x-data="{
77
field: '{{ $field }}',
88
id: {{ $model->id }},
9-
value: {{ json_encode($model->$field) }},
10-
original: {{ json_encode($model->$field) }},
9+
value: {{ json_encode(strip_tags($model->$field)) }},
10+
original: {{ json_encode(strip_tags($model->$field)) }},
1111
editing: false
1212
}"
1313
@click.away="editing = false; value = original;">

0 commit comments

Comments
 (0)