Class Censor
TextSanitizer filter to Replace banned words in a string with their replacements or terminate current request
- Xoops\Core\Text\Sanitizer\SanitizerConfigurable
- Xoops\Core\Text\Sanitizer\SanitizerComponent
- Xoops\Core\Text\Sanitizer\FilterAbstract
- Xoops\Core\Text\Sanitizer\Extensions\Censor
Namespace: Xoops\Core\Text\Sanitizer\Extensions
Package: Xoops\Core\Text
Category: Sanitizer
Copyright: 2000-2015 XOOPS Project (http://xoops.org)
License: GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Taiwen Jiang phppp@users.sourceforge.net
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Text/Sanitizer/Extensions/Censor.php
Package: Xoops\Core\Text
Category: Sanitizer
Copyright: 2000-2015 XOOPS Project (http://xoops.org)
License: GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Taiwen Jiang phppp@users.sourceforge.net
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Text/Sanitizer/Extensions/Censor.php
public
string
|
__construct()
|
getDefaultConfig()
|
protected static
array
|
$defaultConfiguration
default configuration values |
#
[
'enabled' => true,
'censor_terminate' => false, //set to true if you want to trigger an error page
'censor_admin' => true, //set to false if you don't want to censor admin entries
'censor_words' => ['shit', 'piss', 'fuck', 'cunt', 'cocksucker', 'motherfucker', 'tits'],
'censor_replace' => '%#$@!',
]
|
$config,
$shortcodes,
$ts
|