We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e04ea8 commit 771ff23Copy full SHA for 771ff23
resources/views/components/editable.blade.php
@@ -6,8 +6,8 @@
6
<div x-data="{
7
field: '{{ $field }}',
8
id: {{ $model->id }},
9
- value: {{ json_encode($model->$field) }},
10
- original: {{ json_encode($model->$field) }},
+ value: {{ json_encode(strip_tags($model->$field)) }},
+ original: {{ json_encode(strip_tags($model->$field)) }},
11
editing: false
12
}"
13
@click.away="editing = false; value = original;">
0 commit comments