Remove DoubleEntityDecode

Also switch from tabs to spaces.
This commit is contained in:
Adam Backstrom 2013-03-29 11:59:38 -04:00
parent d9126e1105
commit 70770d7cac
2 changed files with 23 additions and 39 deletions

View File

@ -83,21 +83,6 @@ class ActionBase64Encode extends AbstractAction
}
}
class ActionDoubleEntityDecode extends AbstractAction
{
public function __construct( $value )
{
parent::__construct( $value );
$this->setContainer( new TextareaContainer );
$this->setFormatter( new EchoFormatter );
}
public function decode()
{
return html_entity_decode( html_entity_decode( $this->value, ENT_QUOTES, 'UTF-8' ), ENT_QUOTES, 'UTF-8' );
}
}
class ActionBase64Decode extends AbstractAction
{
public function __construct( $value )

View File

@ -34,7 +34,6 @@ if( 'POST' === $_SERVER['REQUEST_METHOD'] ) {
<form method="post">
<textarea class="data" name="data"><?php if( $action ) echo $action->esc_raw(); ?></textarea><br>
<select name="action">
<option value="DoubleEntityDecode" <?php echo selected($action_str, 'DoubleEntityDecode'); ?>>html_entity_decode(html_entity_decode())</option>
<option value="QuotedPrintableDecode" <?php echo selected($action_str, 'QuotedPrintableDecode'); ?>>quoted_printable_decode()</option>
<option value="QuotedPrintableEncode" <?php echo selected($action_str, 'QuotedPrintableEncode'); ?>>quoted_printable_encode()</option>
<option value="Urlencode" <?php echo selected($action_str, 'Urlencode'); ?>>urlencode()</option>