-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
76 lines (61 loc) · 3.08 KB
/
index.html
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Display HTML, XML, SVG, code into a HTML page">
<title>HTML to HTML | Display HTML code to plain text in a HTML page using character entities</title>
<link rel="shortcut icon" href="./assets/images/favicon.png" type="image/x-icon">
<!-- Bootstrap css -->
<link rel="stylesheet" href="./assets/css/bootstrap.min.css">
<!-- Custom css -->
<link rel="stylesheet" href="./assets/css/main.css">
<!-- Bootstrap icons -->
<link rel="stylesheet" href="./assets/bootstrap-icons/bootstrap-icons.min.css">
</head>
<body>
<header class="container mt-4 mb-5">
<h1 class="fw-bold"> Display HTML Tags as Plain Text in HTML</h1>
<p class="fs-5">Display HTML, SVG, XML code to plain text in a HTML page using character entities.</p>
</header>
<main class="container my-5">
<!-- input -->
<h3 for="htmlImput" class="fs-2 fw-bold text-white">
Input
</h3>
<textarea id="htmlInput" class="w-100 bg-dark p-2 rounded" rows="8" placeholder="Enter your HTML, XML, SVG, code here..."></textarea>
<button id="btnConvert" class="btn btn-success"><i class="bi bi-send"></i> Convert</button>
<button id="btnReset" class="btn btn-danger mx-4"><i class="bi bi-trash3"></i> Reset</button>
<!-- Check boxes -->
<div class="form-check form-switch float-lg-end mx-lg-2 mt-2">
<input class="form-check-input" type="checkbox" role="switch" id="replaceLineBreak" checked>
<label class="form-check-label" for="btnLineBreak">Replace line break</label>
</div>
<div class="form-check form-switch float-lg-end mt-2 mb-5">
<input class="form-check-input" type="checkbox" role="switch" id="replaceSpaces" checked>
<label class="form-check-label" for="btnSpaces">Replace spaces</label>
</div>
<!-- output -->
<div class="mt-5">
<h2 class="fw-bold mt-5 d-inline">Output</h2>
<button id="btnCopy" class="btn btn-secondary float-end mb-2 align-items-center d-inline" title="Copy text">
<i class="bi bi-clipboard"></i>
</button>
</div>
<textarea id="output" class="d-block w-100 bg-dark p-2 " rows="8"></textarea>
</main>
<footer class="container text-center p-4 mt-5">
<div>
<div class="d-block mb-2">
<a href="https://github.com/migueweb" class="mx-1" target="blank">Github</a>
<a href="https://github.com/migueweb/html-to-html" class="mx-1" target="blank">Repository</a>
</div>
<div class="my-2">
Made with <i class="bi bi-heart fs-6 text-danger"></i> by <span class="fw-semibold">Miguel Amador</span>
</div>
</div>
</footer>
<script src="./js/app.js"></script>
</body>
</html>