/**
  * Initialize the AJAX validation view.
  *
  * @param string $content The raw content
  * @return Tx_Formhandler_View_AjaxValidation The view class
  */
 protected function initView($content)
 {
     $viewClass = '\\Typoheads\\Formhandler\\View\\AjaxValidation';
     $view = $this->componentManager->getComponent($viewClass);
     $view->setLangFiles(\Typoheads\Formhandler\Utility\GeneralUtility::readLanguageFiles([], $this->settings));
     $view->setSettings($this->settings);
     $templateName = 'AJAX';
     $template = str_replace('###fieldname###', htmlspecialchars($_GET['field']), $content);
     $template = '###TEMPLATE_' . $templateName . '###' . $template . '###TEMPLATE_' . $templateName . '###';
     $view->setTemplate($template, 'AJAX');
     return $view;
 }