[%- FOREACH comment IN comments -%]
Posted by: [% IF comment.url %] [%- url = comment.url %] [% IF NOT url.match('^\\w+://'); url = 'http://' _ url; END -%] [% comment.sender | html %] [% ELSE %] [% comment.sender | html %] | [% END %] [% comment.created | html %]
') .replace(' ', ' ') .replace('(http://(?:\%[A-Fa-f0-9]{2}|[-A-Za-z./0-9~_])+)', '$1') %] [%- END %]