Keep some HTML tags attributes

Hello list,

I enabled HTML for my templates and in SiteConfig enabled

Set($PreferRichText, true);

Set($TrustHTMLAttachments, 1);

But, I’m looking for a way to allow some HTML attributes into RT tickets,
specifically to allow the dir=“RTL” attribute

right now RT strip some of the attributes e.g it’s not removing all
the attributes of the font tag
from where can I control this behavior ?

Thanks,

Rabin Yasharzadehe*

Hello list,

I enabled HTML for my templates and in SiteConfig enabled

Set($PreferRichText, true);
Set($TrustHTMLAttachments, 1);

But, I’m looking for a way to allow some HTML attributes into RT tickets,
specifically to allow the dir=“RTL” attribute

RT 4.0.6 will allow these attributes.

right now RT strip some of the attributes e.g it’s not removing all
the attributes of the font tag
from where can I control this behavior ?

You don’t say what RT version you’re using, and the answer depends on that.

Thomas

Thank you for your reply,

Sorry for now mentioning this before,
I just finish to “upgrade” our old RT system from v3.6.7 to the latest 4.0.5
and we really liked to use all the new HTML features that this new release
come with.

I just patched the mention file in your link, and it WORKS,
I’m really grateful for your quick reply.

Rabin Yasharzadehe*On Tue, May 1, 2012 at 4:46 PM, Thomas Sibley trs@bestpractical.com wrote:

On 05/01/2012 07:21 AM, Rabin Yasharzadehe wrote:

Hello list,

I enabled HTML for my templates and in SiteConfig enabled

Set($PreferRichText, true);
Set($TrustHTMLAttachments, 1);

But, I’m looking for a way to allow some HTML attributes into RT tickets,
specifically to allow the dir=“RTL” attribute

RT 4.0.6 will allow these attributes.

Permit <bdo> tags and the lang and dir attributes when displaying HTML · bestpractical/rt@a625c19 · GitHub

right now RT strip some of the attributes e.g it’s not removing all
the attributes of the font tag
from where can I control this behavior ?

You don’t say what RT version you’re using, and the answer depends on that.

Thomas