We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b55a6f3 + e44a467 commit a5b3037Copy full SHA for a5b3037
index.html
@@ -0,0 +1,14 @@
1
+<!doctype html>
2
+<html>
3
+<head>
4
+<meta charset="UTF-8">
5
+<title>simple-snippets-console</title>
6
+<style>
7
+body {
8
+ font-family: sans-serif;
9
+}
10
+</style>
11
+<body>
12
+<p><a href="https://github.com/tjcrowder/simple-snippets-console">Details in the github project</a></p>
13
+</body>
14
+</html>
snippet.js
@@ -12,6 +12,8 @@ var snippet = {
msg = msg.join();
} else if (typeof object === "object") {
msg = msg === null ? "null" : JSON.stringify(msg);
15
+ } else {
16
+ msg = String(msg);
17
}
18
elm.innerHTML = msg.replace(/&/g, '&').replace(/</g, '<');
19
document.body.appendChild(elm);
0 commit comments