Sample> XSSprotect

<?php

// include TPLN
include('TPLN/TPLN.php');

$TPLN = new TPLN();
$_POST['t'] = $TPLN->XSSProtect($_POST['t']);

$TPLN->directIOWrite('XSSprotect.html');
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>XSSprotect</title>
    <link href="../style.css" rel="stylesheet" type="text/css" />
</head>

<body>

<h1>Protect your website input data with this method !</h1>

<form name="form" method="post" action="">

    <pre>{$_POST['t']}</pre>

    <textarea name="t" cols="50" rows="10"><script>alert('XSS attack !');</script></textarea>

    <br />
    <input type="submit" value="Submit" />
</form>

<br>
<br>
{_Logo}<font size="1"> in {_Chrono} s<br>
Queries executed: {_QueryCount}</font>

</body>
</html>