glFusion Wiki

Site Tools


glfusion:development:api:sanitize_class:censor

sanitize::censor

(glFusion SVN)

censor – Censors inappropriate content

Description

censor( $Message )

Censors the $message variable based on the inappropriate word list from the glFusion configuration.

Parameters

Message

The text to censor.

Return Value

The censored content

Example

$badwordtext = 'This is a bad word, damn';

$censoredtext = $inputHandler->censor($badwordtext);

This would return the following into $censoredtext:

This is a bad word, ****

Notes

See Also

glfusion/development/api/sanitize_class/censor.txt · Last modified: 2017/04/12 21:15 (external edit)

Page Tools