/** * Sanitize comment content * * @param Comment $comment * * @return void */ protected function sanitizeComment(Comment $comment) { $allowTags = $this->settings['blogsystem']['comments']['allowTags']; $comment->setText(GeneralUtility::removeXSS(strip_tags($comment->getText(), trim($allowTags)))); }