Re: HTML::Template and XHTML
Chris Beck <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
Rumour has it Mathew Robertson, on or about 25.Oct.2005 19:48, whispered:
> you can do this with a filter:
>
> my $match = qr/(<[Tt][Mm][Pp][Ll]_[^>]+)\/>/;
> my $filter = sub {
> my $text_ref = shift;
> $$text_ref =~ s/$match/$1>/g;
> };
Hi Mathew, thanks for the help. I am already using filters so I can embed tags
in form fields. I was just hoping for a new XHTML aware version :)
--
Chris Beck - http://pacanukeha.blogspot.com
Hanlon's Razor:
Never attribute to malice that which is adequately explained by stupidity.
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information