/**
  * Is the data expandable when converted to html?
  *
  * @since 1.0
  *
  * @param mixed $data
  *
  * @return bool
  */
 public static function is_expandable($data)
 {
     $value = Options_Pixie_Data_Format::to_html($data);
     if (false !== strpos($value, 'class="array count"')) {
         return true;
     }
     return false;
 }
 /**
  * Formats the option_value column for display.
  *
  * @since 1.0
  *
  * @param string $value
  * @param object $item
  * @param array  $options
  *
  * @return string|void
  */
 public function column_option_value($value, $item, $options)
 {
     global $mode;
     $chars = 100;
     if ('list' == $mode && strlen(trim($value)) > $chars) {
         if (!isset($options['collapsed']) || true === $options['collapsed']) {
             if (is_serialized($value)) {
                 $boundary = ';';
             } elseif (Options_Pixie_Data_Format::is_json($value)) {
                 $boundary = ',';
             } else {
                 $boundary = ' ';
             }
             $truncated = $this->truncate_chars($value, $chars, $boundary);
             if ($truncated !== $value) {
                 $value = $truncated . ' …';
             }
         }
     } elseif ('excerpt' === $mode) {
         $value = Options_Pixie_Data_Format::to_html($value, 'options-pixie-rich-view');
     }
     // Whether truncated or not, in list mode we're handling raw data that must be escaped.
     if ('list' == $mode) {
         $value = esc_html($value);
     }
     return $value;
 }