The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Template::Plugin::HTML_NonAsc - Slightly less picky html filter.

SYNOPSIS

This filter behaves like the builtin html filter except that it does not escape ASCII characters, including <, >, &, and ". This makes it possible to write templates in HTML using non-ASCII characters. Pass the contents through this filter and all non-ASCII characters will be escaped using HTML entities.

The best place to apply this filter is in your page/wrapper:

    [%
    USE HTML_NonAsc;            # for html_nonasc filter
    SWITCH page.type;
        ...
        CASE "html";
            content | html_nonasc
                WRAPPER page/html
                        + page/layout;
        ...
        CASE;
            THROW page.type "Invalid page type: $page.type";
    END;
    -%]

AUTHOR

Johan Vromans, <jv at cpan.org>

BUGS

Please report any bugs or feature requests to bug-template-plugin-html_nonasc at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Template-Plugin-HTML_NonAsc. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Copyright 2010 Johan Vromans, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.