We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 587f365 commit 361b7fbCopy full SHA for 361b7fb
lib/plug/debugger.ex
@@ -234,7 +234,7 @@ defmodule Plug.Debugger do
234
Keyword.merge(assigns,
235
conn: conn,
236
message: maybe_autolink(message),
237
- markdown: markdown,
+ markdown: h(markdown),
238
style: style,
239
banner: banner,
240
actions: actions,
lib/plug/templates/debugger.html.eex
@@ -1057,7 +1057,7 @@
1057
function copyToClipboard () {
1058
if(navigator.clipboard) {
1059
// For those working on localhost or HTTPS
1060
- navigator.clipboard.writeText($copy.innerHTML).then(copiedClipboard).catch(() => {})
+ navigator.clipboard.writeText($copy.textContent).then(copiedClipboard).catch(() => {})
1061
} else {
1062
// For those working on HTTP
1063
$copy.select()
0 commit comments