From f0e88b27fc743850b7f8b30e5e421415bd7eb149 Mon Sep 17 00:00:00 2001 From: Lucy Fu Date: Wed, 30 Oct 2024 16:00:36 -0400 Subject: [PATCH] Fixes #37898 - Don't copy to clipboard as HTML --- app/views/foreman_virt_who_configure/configs/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/foreman_virt_who_configure/configs/show.html.erb b/app/views/foreman_virt_who_configure/configs/show.html.erb index 8366ac6..316e410 100644 --- a/app/views/foreman_virt_who_configure/configs/show.html.erb +++ b/app/views/foreman_virt_who_configure/configs/show.html.erb @@ -79,7 +79,7 @@
- <%= link_to _('Copy to clipboard'), '#', :class => 'btn btn-default', :onclick => 'virt_who_copy_configuration_to_clipboard($("#config_command").html()); return false' %> + <%= link_to _('Copy to clipboard'), '#', :class => 'btn btn-default', :onclick => 'virt_who_copy_configuration_to_clipboard($("#config_command").text()); return false' %>
@@ -103,7 +103,7 @@
- <%= link_to _('Copy to clipboard'), '#', :class => 'btn btn-default', :onclick => 'virt_who_copy_configuration_to_clipboard($("#config_script").html()); return false' %> + <%= link_to _('Copy to clipboard'), '#', :class => 'btn btn-default', :onclick => 'virt_who_copy_configuration_to_clipboard($("#config_script").text()); return false' %> <%= link_to _('Download the script'), deploy_script_foreman_virt_who_configure_config_path(@config), :class => 'btn btn-default' %>