I’m building an app where users can input text. I want to check that text against a list of banned words I’ve put together in my database.
This is what I have, but it is not working correctly.
I’m building an app where users can input text. I want to check that text against a list of banned words I’ve put together in my database.
This is what I have, but it is not working correctly.
I uploaded the wrong screenshot! Sorry about that — I’ve updated my post.
Do you know how to get it to only look for the full word and not if it’s part of another word. For example, your method filters the word Peacock if the banned word was “cock”.