Bug 27336: Add POD for new package

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 0db3787a20)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2021-01-11 10:17:25 +01:00 committed by Fridolin Somers
parent 7660b558b4
commit 7a93a6d69c
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 ) = @_;