Converting newlines to <br /> tags
Bill Ward <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <CAKGT8WrmDCDYjWSeE6nMwesy+U6-ON4tgea+t9fEJ-XGQ3xn2Q@mail.gmail.com> |
Is there a filter that will convert \n characters to <br /> tags as well as converting other special characters to HTML entities? Currently I display the data using this code: <td>[% HTML.escape(s.contribution) %]</td> if I change the \n to <br /> in the Perl code, that gets converted to <br /> in the output naturally. I don't want to put actual Perl code into the template. I don't see anything in Template::Plugin::HTML that might help. -- Check out my LEGO blog at http://www.brickpile.com Follow/friend me: facebook.com/billward • flickr.com/photos/billward • twitter.com/williamward _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates