Просмотр исходного кода

changed output to html in url action Ant

Piotr Labudda 9 лет назад
Родитель
Сommit
3c44e06f95
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      SE/se-lib/Route/UrlAction/Ant.php

+ 2 - 1
SE/se-lib/Route/UrlAction/Ant.php

@@ -92,7 +92,8 @@ class Route_UrlAction_Ant extends Route_Ant {// @doc @see Route_Ant
       }
       echo UI::h('h3', [], "output:");
       if (empty($html)) UI::alert('danger', "Empty output!");
-      echo UI::h('pre', [], htmlspecialchars(implode("\n", $html)));
+      // echo UI::h('pre', [], htmlspecialchars(implode("\n", $html)));
+      echo UI::h('div', ['class'=>"container", 'style'=>"padding:12px; border:1px solid #ddd"], $html);
     } catch (Exception $e) {
       UI::alert('danger', $e->getMessage());
       DBG::log($e);