Function censorText
Replace all vulgar words with respective proper words. (substring or whole words..) What this function does: - it censors the passed string. - if the theme setting allow_no_censored is on, and the theme option show_no_censored is enabled, does not censor, unless force is also set. - it caches the list of censored words to reduce parsing.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Load.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Load.php
string |
& $text |
$text The text to censor |
boolean |
$force = false |
Whether to censor the text regardless of settings |
string
|
The censored text |