Skip to content

Only replace bad word, not entire sentence that contains the bad word #20

Description

@EddieBlueUplink

I feel like I'm missing something. I simply want the 1 bad word replaced with ****, but instead the filter replaces the entire sentence with *****.

Thanks.

$check = new Check('../libs/wordlist.php');
$cleanWords = $check->obfuscateIfProfane($badWords);
echo $cleanWords;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions