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

MKDoc::XML::DecodeHO - Decode (H)TML (O)nly

SYNOPSIS

  use MKDoc::XML::DecodeHO;

  # turn $string into "© & ®"
  my $string = '© & ®'
  $string    = MKDoc::XML::DecodeHO->process ($string);

SUMMARY

MKDoc::XML::Decode is a very simple module which decodes HTML entities only, but NOT the following XML entities:

  '
  "
  >
  <
  &

That's it. If you also wish to decode the above XML entities, use it in conjunction with MKDoc::XML::Decode.

In MKDoc everything is stored as UTF-8. Since Unicode is a character set wide enough, HTML and numerical entities are not needed. This modules turns them into their actual character.

This module is heavily stolen from HTML::Entities.

API

my $decoded = MKDoc::XML::DecodeHO->process ($html);

Does what is said in the summary.

AUTHOR

Copyright 2003 - MKDoc Holdings Ltd.

Author: Jean-Michel Hiver <jhiver@mkdoc.com>

This module is free software and is distributed under the same license as Perl itself. Use it at your own risk.

SEE ALSO

MKDoc::XML::Decode MKDoc::XML::Encode

1 POD Error

The following errors were encountered while parsing the POD:

Around line 324:

Non-ASCII character seen before =encoding in '"©'. Assuming CP1252