stripinput
Quote
stripinput ( mixed $text )
Parameters
text
Mixed subject to be stripped, this can be a string, numeric or an array.
Return Values
The given string decoded as non HTML text
Example
Code
<?php
$text = "<a href='www.example.com'><strong>Here is a site</strong></a>";
echo stripinput($text);
?>
Here we will prevent the text to be stored as HTML
Output from the example above
Quote
<a href='www.example.com'><strong>Here is a site</strong></a>
Changelog
7.01.00 - stripinput() will now also strip arrays
Notes
Using this on entries to the database which is supposed to be HTML will make the HTML to malfunction.
Use this for all submitted entries to the database to prevent injections.