We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc535b1 commit dbd349bCopy full SHA for dbd349b
lib/plug/debugger.ex
@@ -214,7 +214,7 @@ defmodule Plug.Debugger do
214
Keyword.merge(assigns,
215
conn: conn,
216
message: message,
217
- markdown: markdown,
+ markdown: h(markdown),
218
style: style,
219
banner: banner,
220
actions: actions,
lib/plug/templates/debugger.html.eex
@@ -849,7 +849,7 @@
849
function copyToClipboard () {
850
if(navigator.clipboard) {
851
// For those working on localhost or HTTPS
852
- navigator.clipboard.writeText($copy.innerHTML).then(copiedClipboard).catch(() => {})
+ navigator.clipboard.writeText($copy.textContent).then(copiedClipboard).catch(() => {})
853
} else {
854
// For those working on HTTP
855
$copy.select()
0 commit comments