protected function _censor($content) {
        $pattern = implode('|', array_map(array($this, '_prepareRegex'), $this->getBlacklist()));
        $content = preg_replace_callback('/(?:^|\b)(?:' . $pattern . ')(?:\b|$)/is', array($this, '_censorCallback'), $content);

        return $content;
    }
protected function _censor($content) {
        $pattern = implode('|', array_map(array($this, '_prepareRegex'), $this->getBlacklist()));
        $content = preg_replace_callback('/(?:^|\b)(?:' . $pattern . ')(?:\b|$)/is', array($this, '_censorCallback'), $content);

        return $content;
    }
protected function _censor ( $ content ) { $ pattern = implode ( '|' , array_map ( array ( $ this , '_prepareRegex' ) , $ this -> getBlacklist ( ) ) ) ; $ content = preg_replace_callback ( '/(?:^|\b)(?:' . $ pattern . ')(?:\b|$)/is' , array ( $ this , '_censorCallback' ) , $ content ) ; return $ content ; }
Trigger censoring.

@param string $content
@return string
Trigger censoring .