The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Petal::Hash::Encode_HTML - A modifier that encodes hash values to HTML

SYNOPSIS

  my $value = $hash->{'some.expression'};
  my $value_html = $hash->{':encode some.expression'};

DESCRIPTION

A simple modifier which encodes values as HTML, i.e. turns '&', '<', '>' and '"' into '&amp;' '&lt;' '&gt;' and '&quot;' respectively.

AUTHOR

Lucas Marinho <lucas.marinho@uol.com.br>

This module is redistributed under the same license as Perl itself.

SEE ALSO

The template hash module:

  Petal::Hash