<html>
<body bgcolor="#fad888">
<form>
<textarea width="100%" growable autoactivate name="input"><?
$input 
$_REQUEST[input];
$allowed $_REQUEST[allowed];
if ( !isset(
$input)  )
{ echo 
"<html>
<body>
<h1>This is a test</h1>
<font color=\"red\">This is red</font>
<center>
<img src=\"\" height=\"100\" width=\"100\" alt=\"My picture\">
</center>
</body>
</html>"
; }
else 

$input strip_tags($input"$allowed");
$input stripslashes($input);
echo 
"$input"; }
?>
</textarea><br>
<center>
Allowed tags: <input type="text" name="allowed" <?
if ( !isset($input) )
{ echo 
" value=\"<html>, <body>\""
}
else { echo 
"value=\"$allowed\""; }
?>/> <input type="submit">
</center>
</form>
</body>
</html>