SproutCMS

This is the code documentation for the SproutCMS project

function censor()

Checks text for bad words, like 'tax' and 'capsicum'

Usage

string Spam::censor ( string $text );

Arguments

  1. string $text
    The text to censor

Return value

  • string
    The censored text, with disallowed sequences replaced with '*'

See also

  • config sprout.censor_level to set the desired censor level