[rt-users] Filter ticket text for display?

Gary Oberbrunner garyo at genarts.com
Mon Jul 9 11:34:47 EDT 2007


> Essentially I created a file in the local/share/request-tracker3.4 tree
> called html/Callbacks/CCDC/Ticket/Elements/ShowMessageStanza/Default
> containing:
> 
> <%init>
> my $val = $$content;
> use bytes;
> $val =~ s/(s?http|https):[\w\/\.:+\-]+/<a href="$&">$&<\/a>/gi;
> $$content = $val;
> </%init>
> <%args>
> $content => undef
> </%args>

Thanks -- that's exactly what I needed!  I updated the wiki page with this code.

-- Gary



More information about the rt-users mailing list