We’ve developed some resources to help you work effectively from home during COVID-19 Click to learn more

"Keep HTML tags" option in extra fields

Hello everyone,

 

I have a question concerning "extra fields":

 

When creating a new textfield I can choose the option "Keep HTML tags". I was  not able to find out if this option makes any difference, when I enter HTML code into the newly created textfield. the result is, that the code is shown, but not interpreted, no matter if the option is selected or not.

What am I doing wrong?

Greetz,

Peter

RE: "Keep HTML tags" option in extra fields

You are not doing anything wrong, this seems like a bug.

Sverre

Av: Sverre Hjelm 26. mar 2012

RE: "Keep HTML tags" option in extra fields

Did the bug get registered? I have a case where it would have been really useful. 

I want to put some HTML into a field on the ticket, for example "<img src='/graphics/Seven/star_lit.png' />", so that we get a nice visualization in the ticket list.

Av: Frode Lillerud 17. aug 2018

RE: "Keep HTML tags" option in extra fields

Yes, still valid it seems like: https://community.superoffice.com/en/Issue-Center/Product-Issue/?bid=6083

Av: Margrethe Romnes 17. aug 2018

RE: "Keep HTML tags" option in extra fields

Hi, the bug is registered, but this is not an entirely easy thing to fix. I understand your desire for a star in the ticket title, but how about some more javascript in there? We are working hard to prevent potential XSS-bugs, and so we cannot just open for HTML content here.

Sverre

Av: Sverre Hjelm 17. aug 2018

RE: "Keep HTML tags" option in extra fields

We've considered using Javascript to manipulate the HTML in the client, but that would only work in "View Ticket", since that is a screen we can edit.

In for instance the "List tickets" screen, we cannot add any javascript.

Here is a screenshot of what the customer would like to end up with:

Av: Frode Lillerud 17. aug 2018

RE: "Keep HTML tags" option in extra fields

As an alternative to using HTML to visualize I also tried using Unicode chars instead. Those would be nice as visual indicators, but without the XSS issue.

In CRM it is possible to use Unicode chars (see https://unicode.org/emoji/charts/full-emoji-list.html) in any text, but unfortunately Service doesn't handle those chars correctly.

As an example, here is a company name in CRM: 

But looking up the same company in Service looks like this:

If this had worked we could have made a text-column on the ticket, and just displayed that in the list.

I submitted a bug for this, but got response that it was allready registered here.

Av: Frode Lillerud 20. aug 2018

RE: "Keep HTML tags" option in extra fields

I know the flag works in Service, when working on a solution to add a flag to the title when the priority of the mail was high.

  t.setValue("title","⚑ "+ oldTitle);

Av: Niels van Broekhoven 20. aug 2018

RE: "Keep HTML tags" option in extra fields

Ah, good tip. When doing further testing it seems like Service handles Unicode 5.2, but not Unicode 6.0 and above.

By picking older unicode chars we can do something like this:

Av: Frode Lillerud 20. aug 2018