Template::Plugin::XML::Escape

Dirk Koopman djk at tobit.co.uk
Fri Jun 16 14:07:05 BST 2006


On Fri, 2006-06-16 at 13:43 +0100, Dave Cross wrote:
> Quoting Toby Corkindale <tjc at wintrmute.net>:
> 
> > Maybe I've just re-invented the wheel, but in case I haven't, there's a very
> > simple little module I've just uploaded to CPAN:   
> > Template::Plugin::XML::Escape
> >
> > It just escapes the naughty <>'"& characters into XML entities.
> 
> Sounds a lot like the standard HTML filter.
> 
> http://search.cpan.org/dist/Template-Toolkit/lib/Template/Manual/Filters.pod#html
> 

or

HTML::Entities

Which, I suppose merely emphasises the fact that it can be very
difficult to find the CPAN module that you are looking for - when the
only criterion you have is "I want something that does: <this>".





More information about the london.pm mailing list