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_XML - A modifier that encodes hash values to XML

SYNOPSIS

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

DESCRIPTION

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

AUTHOR

Jean-Michel Hiver <jhiver@mkdoc.com>

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

SEE ALSO

The template hash module:

  Petal::Hash