<p dir="ltr">Another solution in recent versions of RT is to install the HTML::Gumbo module from CPAN, which should automatically enable correct display of all HTML in tickets without any coding.</p>
<br><div class="gmail_quote">On Sat, 17 Jan 2015 1:11 amĀ <a href="mailto:ktm@rice.edu">ktm@rice.edu</a> <<a href="mailto:ktm@rice.edu">ktm@rice.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Jan 16, 2015 at 06:49:05AM -0700, vinz wrote:<br>
> RT is pruning the table, td and tr -tags from emails when you look at them at<br>
> the Ticket/Display.html -page, is there a way to stop RT from doing this?<br>
><br>
> I tried enabling Rich text (HTML) in my preferences and looked at<br>
> \share\html\Elements\<u></u>ShowMessageStanza but I'm just a beginner when it comes<br>
> to perl.<br>
><br>
> I'm currently on RT 4.2.6 and use apache, mod_fcgi and nginx as a reverse<br>
> proxy.<br>
><br>
> Thanks in advance,<br>
> vinz<br>
><br>
Hi Vinz,<br>
<br>
You need to adjust the allowed tags in the HTML::Scrubber object by adding a<br>
Web_Local.pm:<br>
<br>
<a href="https://www.bestpractical.com/docs/rt/4.2/RT/Interface/Web.html" target="_blank">https://www.bestpractical.com/<u></u>docs/rt/4.2/RT/Interface/Web.<u></u>html</a><br>
<br>
Here is what I am using because I wanted to allow the tables to have colors:<br>
<br>
----------------<br>
package HTML::Mason::Commands;<br>
# Let tables through<br>
push @SCRUBBER_ALLOWED_TAGS, qw(TABLE THEAD TBODY TFOOT TR TD TH);<br>
# Allow bgcolor to be set<br>
$SCRUBBER_ALLOWED_ATTRIBUTES{<u></u>bgcolor} = '^\s*\#[a-fA-F0-9]{3,6}\s*';<br>
1;<br>
----------------<br>
<br>
Make sure to set the option in your RT_SiteConfig.pm<br>
<br>
Set($TrustHTMLAttachments, 1);<br>
<br>
I think that is all I needed to do. Then restart after clearing your Mason<br>
cache.<br>
<br>
Regards,<br>
Ken<br>
</blockquote></div>