public function getDiffVersionPreview($data, $object = null, $params = [])
{
if ($data) {
$html = "<table>";
foreach ($data as $row) {
$html .= "<tr>";
if (is_array($row)) {
foreach ($row as $cell) {
$html .= "<td>";
$html .= $cell;
$html .= "</th>";
}
}
$html .= "</tr>";
}
$html .= "</table>";
$value = [];
$value["html"] = $html;
$value["type"] = "html";
return $value;
} else {
return "";
}
}