diff --git a/classes.php b/classes.php index 39959c3..5385272 100644 --- a/classes.php +++ b/classes.php @@ -53,6 +53,21 @@ class ActionQuotedPrintableDecode extends AbstractAction } } +class ActionQuotedPrintableEncode extends AbstractAction +{ + public function __construct( $value ) + { + parent::__construct( $value ); + $this->setContainer( new TextareaContainer ); + $this->setFormatter( new EchoFormatter ); + } + + public function decode() + { + return quoted_printable_encode( $this->value ); + } +} + class ActionBase64Encode extends AbstractAction { public function __construct( $value ) diff --git a/index.php b/index.php index d3cc094..f306cc3 100644 --- a/index.php +++ b/index.php @@ -36,6 +36,7 @@ if( 'POST' === $_SERVER['REQUEST_METHOD'] ) {