Skip to content

Commit 49a949a

Browse files
Merge pull request #6836 from Ursadon/patch-1
Escaping angle brackets in a device config file
2 parents 288bf47 + 27f3816 commit 49a949a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netbox/templates/dcim/device/config.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
url: "{% url 'dcim-api:device-napalm' pk=object.pk %}?method=get_config",
4040
dataType: 'json',
4141
success: function(json) {
42-
$('#running_config').html($.trim(json['get_config']['running']));
43-
$('#startup_config').html($.trim(json['get_config']['startup']));
44-
$('#candidate_config').html($.trim(json['get_config']['candidate']));
42+
$('#running_config').text($.trim(json['get_config']['running']));
43+
$('#startup_config').text($.trim(json['get_config']['startup']));
44+
$('#candidate_config').text($.trim(json['get_config']['candidate']));
4545
},
4646
error: function(xhr) {
4747
alert(xhr.responseText);

0 commit comments

Comments
 (0)