package DTL::Fast::Filter::Escape;
use strict; use utf8; use warnings FATAL => 'all'; 
use parent 'DTL::Fast::Filter';
use Carp qw(confess);

$DTL::Fast::FILTER_HANDLERS{'escape'} = __PACKAGE__;
$DTL::Fast::FILTER_HANDLERS{'force_escape'} = __PACKAGE__;

#@Override
sub filter
{
    shift;  # self
    shift->{'safe'} = 1;    # filter_manager
    return DTL::Fast::Utils::html_protect(shift);
}

1;