diff --git a/classes.php b/classes.php
index 129da24..7a727b9 100644
--- a/classes.php
+++ b/classes.php
@@ -1,6 +1,7 @@
setContainer( new DivContainer );
+ $this->setFormatter( new EchoFormatter );
+ }
+
+ public function decode()
+ {
+ $converter = new AnsiToHtmlConverter();
+ return htmlentities(nl2br($converter->convert($this->value)));
+ }
+}
+
class ActionParseStr extends AbstractAction
{
public function setUp()
diff --git a/composer.json b/composer.json
index f6da867..02238e6 100644
--- a/composer.json
+++ b/composer.json
@@ -1,5 +1,6 @@
{
"require": {
- "sunra/dbug": "dev-master"
+ "sunra/dbug": "dev-master",
+ "sensiolabs/ansi-to-html": "dev-master"
}
}
diff --git a/index.php b/index.php
index 96a60d7..534c9a3 100644
--- a/index.php
+++ b/index.php
@@ -47,6 +47,7 @@ if( 'POST' === $_SERVER['REQUEST_METHOD'] ) {
+