Skip to content

Commit

Permalink
Escape inventory agent answer
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed May 12, 2023
1 parent 786113c commit 5f8ba46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/components/form/inventory_info.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
id: '{{ agent.fields['id'] }}'
},
success: function(json) {
$('#agent_status').html(json.answer);
$('#agent_status').text(json.answer);
},
complete: function() {
icon.removeClass('fa-spin');
Expand All @@ -143,7 +143,7 @@
id: '{{ agent.fields['id'] }}'
},
success: function(json) {
$('#inventory_status').html(json.answer);
$('#inventory_status').text(json.answer);
},
complete: function() {
icon.removeClass('fa-spin');
Expand Down

0 comments on commit 5f8ba46

Please sign in to comment.