I need help tagging text in my chat app.
Whenever someone types a bad word in the chat app, it immediately gets tagged and shown like: ######. I feel like adding this feature because I figure that young kids will be using the app and I want to make it age-friendly,
Here’s a demo that will do this:
(See the screen with your username)
It’s not perfect. For example, if a prohibited word (“cat” in the example below) is touching a period or other punctuation, it won’t get replaced. And it doesn’t check for mixed case (e.g. turkey≠Turkey≠TURKEY). It also uses the 5-character string “#####” as the replacement for prohibited words regardless of their length.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.