PHP - HTML Purifier - hello w<o>rld/world tutorial striptags
Posted
by JW
on Stack Overflow
See other posts from Stack Overflow
or by JW
Published on 2010-04-20T18:17:57Z
Indexed on
2010/04/20
18:23 UTC
Read the original article
Hit count: 291
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:
or PHP's in built data sanitizing
© Stack Overflow or respective owner