Composer package for censoring profanity in web applications, forums, etc. http://banbuilder.com
Hi. Could this be modified to use a set list of words instead of just **? I have a basic filter that looks like this:
$string = "shit";
$swears = array(
"ass" => "a",
"fuck" => "f*",
"shit" => "💩"
);
$filtered = str_ireplace(array_keys($swears), array_values($swears), $string);
echo $filtered; // Outputs 💩
But this can't check for leet. I've never used OOPHP before so have no idea if it's even possible