diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php
index 743dc035fc..0c0d6cc872 100644
--- a/html/includes/functions.inc.php
+++ b/html/includes/functions.inc.php
@@ -1409,3 +1409,17 @@ function search_oxidized_config($search_in_conf_textbox)
$context = stream_context_create($opts);
return json_decode(file_get_contents($oxidized_search_url, false, $context), true);
}
+
+/**
+ * @param $data
+ * @return bool|mixed
+ */
+function array_to_htmljson($data)
+{
+ if (is_array($data)) {
+ $data = htmlentities(json_encode($data));
+ return str_replace(',', ',
', $data);
+ } else {
+ return false;
+ }
+}
diff --git a/html/includes/print-interface.inc.php b/html/includes/print-interface.inc.php
index 306f7badc5..25b2444bea 100644
--- a/html/includes/print-interface.inc.php
+++ b/html/includes/print-interface.inc.php
@@ -1,3 +1,8 @@
+