-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tester.php
42 lines (33 loc) · 1.08 KB
/
Tester.php
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
<!doctype html>
<html lang=fr>
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<?php
require("Chatnitizer.php");
//NUMBER
$chatnitizer = new Chatnitizer("number","245fes");
echo $chatnitizer->toString()."<br />";
// INPUT
$chatnitizer = new Chatnitizer("input","www.testÅÅ.com");
echo $chatnitizer->toString()."<br />";
// STRING
$chatnitizer = new Chatnitizer("string","<a href=''>www.testÅÅ.com</a>");
echo $chatnitizer->toString()."<br />";
// INPUT WITHOUT HTML
$chatnitizer = new Chatnitizer("removehtml|input","<a href=''>www.testÅÅ.com</a>");
echo $chatnitizer->toString()."<br />";
// URL
$chatnitizer = new Chatnitizer("removehtml|url","<a href=''>https://www.testÅÅ.com</a>");
echo $chatnitizer->toString()."<br />";
// EMAIL
$chatnitizer = new Chatnitizer("email","#@%^%#$@#$@#.com");
var_dump($chatnitizer->toString())."<br />";
?>
</body>
</html>