public function sanitizeComments($comments)
    {
        $sanitizers = $this->_comment_sanitizer;

        if (isset($sanitizers['format'])) {
            $sanitizers['format'] = $this->_repository
                                         ->getValidator()
                                         ->getFilter($sanitizers['format']);
        }

        foreach ($comments as $comment) {
            $comment->sanitizeData('body', $sanitizers);
        }
    }
public function sanitizeComments($comments)
    {
        $sanitizers = $this->_comment_sanitizer;

        if (isset($sanitizers['format'])) {
            $sanitizers['format'] = $this->_repository
                                         ->getValidator()
                                         ->getFilter($sanitizers['format']);
        }

        foreach ($comments as $comment) {
            $comment->sanitizeData('body', $sanitizers);
        }
    }
public function sanitizeComments ( $ comments ) { $ sanitizers = $ this -> _comment_sanitizer ; if ( isset ( $ sanitizers [ 'format' ] ) ) { $ sanitizers [ 'format' ] = $ this -> _repository -> getValidator ( ) -> getFilter ( $ sanitizers [ 'format' ] ) ; } foreach ( $ comments as $ comment ) { $ comment -> sanitizeData ( 'body' , $ sanitizers ) ; } }
Sanitize an array of comments.

@param array $comments The comments to sanitize
Sanitize an array of comments .