Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CensorString fails to clean words in multi-line input #22

Open
kHackett opened this issue Sep 1, 2021 · 1 comment
Open

CensorString fails to clean words in multi-line input #22

kHackett opened this issue Sep 1, 2021 · 1 comment

Comments

@kHackett
Copy link

kHackett commented Sep 1, 2021

In a multi-line textbox entry, words are missed if they are before or after a \r\n or \n.
Example: only the first word is censored

var output = profanityFilter.CensorString( "fuk fuk\r\nfuk fuk\nfuk", '#');

@kHackett
Copy link
Author

kHackett commented Sep 1, 2021

... and also HTML tags eg: "<b>fuk</b>"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant