From a4414df0479df28f45e4205c0138e383b2bcc10c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 11 Jan 2021 10:17:25 +0100 Subject: [PATCH] Bug 27336: Add POD for new package --- Koha/Template/Plugin/HtmlId.pm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Koha/Template/Plugin/HtmlId.pm b/Koha/Template/Plugin/HtmlId.pm index 13fc9e8500..5ca9912aa5 100644 --- a/Koha/Template/Plugin/HtmlId.pm +++ b/Koha/Template/Plugin/HtmlId.pm @@ -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 %] + +
+ +It will replace characters that are not valid for HTML IDs with an underscore (_) + +=cut + sub filter { my ( $self, $text ) = @_; -- 2.20.1