Foul Language – Profanity Filter (PHP)
None of us wants to have a banned Website due to offensive language contents. We all know well that we cannot monitor the contents of our site 24/7.
Profanity Filter helps to filter “bad words”. All you have to do is call sanitizeWord function. It can be used for a word, sentence, paragraph or even an article. Profanity Filter automatically searches and replaces each bad word.
Examples
Partial Filter
echo sanitizeWord($text, 'partial');
Result: “The first draft of anything is sh*t” by Ernest Hemingway
Full Filter
echo sanitizeWord($text);
Result: “The first draft of anything is $@&*%” by Ernest Hemingway
Screenshots



Leave Your Comment