Bug 27336: Add POD for new package

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2021-01-11 10:17:25 +01:00
parent d89f6027be
commit 0db3787a20
1 changed files with 14 additions and 0 deletions

View File

@ -19,6 +19,20 @@ use Modern::Perl;
use parent qw( Template::Plugin::Filter );
=head1 NAME
Koha::Template::Plugin::HtmlId - Filter characters for HTML IDs
=head1 SYNOPSIS
[% USE HtmlId %]
<div id=[% var | HtmlId %]></div>
It will replace characters that are not valid for HTML IDs with an underscore (_)
=cut
sub filter {
my ( $self, $text ) = @_;