PHP - HTML Purifier - hello w<o>rld/world tutorial striptags
- by JW
I am just looking into using HTML Purifier to ensure that a user-inputed string (that represents the name of a person) is sanitized.
I do not want to allow any html tags, script, markup etc - I just want the alpha, numeric and normal punctuation characters.
The sheer number of options available for HTML Purifier is daunting and, as far as i can see, the docs do not seem to have a beggining/middle or end
see: http://htmlpurifier.org/docs
Is there a simple hello world tutorial online that shows how to sanitize a string removing all the bad stuff out of it.
I am also considering just using strip tags:
http://php.net/manual/en/function.strip-tags.php
or PHP's in built data sanitizing
http://us.php.net/manual/en/book.filter.php