PHP-Fusion Development

stripinput()

Strip Input, prevents HTML in unwanted places.

Versions: 9

stripinput( mixed $text ) : mixed

Parameters

$text (mixed) (Required) String or array to be stripped.

Return Values

(mixed) The given string decoded as non HTML text.

Examples

$text = '<a href="www.example.com"><strong>Here is a site</strong></a>';
echo stripinput($text);
// <a href="www.example.com"><strong>Here is a site</strong></a>