Exemple #1
0
 public function getPrint()
 {
     if (empty($this->text)) {
         return null;
     }
     $text = $this->text;
     if (!$this->use_profanity) {
         $text = PHPWS_Text::profanityFilter($text);
     }
     if ($this->use_strip_tags) {
         $text = strip_tags($text, $this->allowed_tags);
     }
     if ($this->use_breaker) {
         $text = PHPWS_Text::breaker($text);
     }
     if ($this->fix_anchors) {
         $text = PHPWS_Text::fixAnchors($text);
     }
     if ($this->collapse_urls) {
         $text = PHPWS_Text::collapseUrls($text);
     }
     return $text;
 }