Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/plug/debugger.ex
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ defmodule Plug.Debugger do
Keyword.merge(assigns,
conn: conn,
message: maybe_autolink(message),
markdown: markdown,
markdown: h(markdown),
style: style,
banner: banner,
actions: actions,
Expand Down
2 changes: 1 addition & 1 deletion lib/plug/templates/debugger.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@
function copyToClipboard () {
if(navigator.clipboard) {
// For those working on localhost or HTTPS
navigator.clipboard.writeText($copy.innerHTML).then(copiedClipboard).catch(() => {})
navigator.clipboard.writeText($copy.textContent).then(copiedClipboard).catch(() => {})
} else {
// For those working on HTTP
$copy.select()
Expand Down