-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (50 loc) · 1.48 KB
/
Copy pathindex.html
File metadata and controls
56 lines (50 loc) · 1.48 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Character Filtering</title>
<link href="../style/core.css" rel="stylesheet"/>
<link href="main.css" rel="stylesheet" />
<script src="main.js"></script>
</head>
<body>
<header>
<h1>Character Filtering</h1>
</header>
<main>
<p>
This file how to prevent user entering "<" and ">". First example dynamically second after the "Check Input" button is clicked.
</p>
<p>
Both approaches could be used for any character. The second one also can be used via node, but showing the example here
in browser only.
</p>
<hr />
<div class="grid-wrapper">
<div class="grid-element-left">
<h2>Dynamic Filtering</h2>
<form>
<div>
<textarea id="dynamicFilterExample"></textarea>
</div>
</form>
<div id="dynamicFilterExampleOutput" class="error">
</div>
</div>
<div class="grid-element-right">
<h2>When user done editing</h2>
<form>
<div>
<textarea id="staticFilterExample"></textarea>
</div>
<div>
<button id="doStaticFilter" type="button">Filter Input</button>
</div>
</form>
<div id="staticFilterExampleOutput" class="error">
</div>
</div>
</div>
</main>
</body>
</html>