-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjson.html
More file actions
28 lines (26 loc) · 712 Bytes
/
json.html
File metadata and controls
28 lines (26 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Tools - JSON</title>
<script src="components/sidebar-component.js"></script>
<script src="components/header-component.js"></script>
<link href="index.css" rel="stylesheet">
</head>
<body>
<header-component></header-component>
<sidebar-component></sidebar-component>
<main>
<textarea id="content"></textarea>
<code id="output"></code>
<button onclick="unescape()">Unescape</button>
</main>
<script>
function unescape() {
let json = document.getElementById('content').value.trim();
json = json.replace(/\\/g, "");
document.getElementById('output').innerHTML = json
}
</script>
</body>
</html>