/**
  * The hidden form fields that store a JSON representation of the categories
  * for an article.
  */
 public function editPageMetadata()
 {
     $categories = '';
     $data = CategoryHelper::getExtractedCategoryData();
     if (isset($data) && !empty($data['categories'])) {
         $categories = htmlspecialchars(CategoryHelper::changeFormat($data['categories'], 'array', 'json'));
     }
     $this->response->setVal('categories', $categories);
 }