remove hardcoded version strings
[catagits/Catalyst-Action-REST.git] / lib / Catalyst / Action / Serialize / YAML / HTML.pm
index 7004b0b..631a71e 100644 (file)
@@ -7,6 +7,8 @@ extends 'Catalyst::Action';
 use YAML::Syck;
 use URI::Find;
 
+# VERSION
+
 sub execute {
     my $self = shift;
     my ( $controller, $c ) = @_;
@@ -20,7 +22,7 @@ sub execute {
     my $output = "<html>";
     $output .= "<title>" . $app . "</title>";
     $output .= "<body><pre>";
-    my $text = Dump($c->stash->{$stash_key});
+    my $text = HTML::Entities::encode(Dump($c->stash->{$stash_key}));
     # Straight from URI::Find
     my $finder = URI::Find->new(
                               sub {
@@ -42,4 +44,6 @@ sub execute {
     return 1;
 }
 
+__PACKAGE__->meta->make_immutable;
+
 1;