I am a bit confused on the strip_tags command. I thought that strip_tags strips all HTML and PHP coding from whatever is input. I have the following code:
<?php
$message = $_REQUEST['Message'];
echo strip_tags($message);
?>
If I enter something like the following in to the textarea box:
<p>Hello World!</p>
It will strip the <p> tags and display, "Hello World!" However, if I enter something like:
<?php
<p><font face="arial">Hello World</font></p>
?>
Then it will just display a blank page. My goal is to just strip PHP and HTML coding to try to prevent abuse. In addition, does the strip_tags command also strip javascript?