---
name: "Catmandu::Exporter::HTML"
section: "3pm"
platform: "linux"
package: "libcatmandu-html-perl"
version: "0.02+dfsg-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catmandu::Exporter::HTML"
---

# Catmandu::Exporter::HTML(3pm)

a HTML exporter

## NAME

Catmandu::Exporter::HTML - a HTML exporter

## SYNOPSIS

```
    # From the commandline
    $ catmandu convert HTML --fix myfixes to HTML < ex/test.html
    # From Perl
    use Catmandu;
    # Print to STDOUT
    my $exporter = Catmandu->exporter('HTML');
    $exporter->add_many($arrayref);
    $exporter->add_many($iterator);
    $exporter->add_many(sub { });
    $exporter->add($hashref);
    printf "exported %d objects\n" , $exporter->count;
    # Get an array ref of all records exported
    my $data = $exporter->as_arrayref;
```

## DESCRIPTION

This is a Catmandu::Exporter for converting Perl into HTML.

## SEE ALSO

Catmandu::Importer::LIDO, HTML::TokeParser
