Skip to main content
1-Visitor
January 10, 2018
Solved

Converting MKS-HTML in Standard-HTML or Plain Text?

  • January 10, 2018
  • 1 reply
  • 2896 views

Hi all,

 

We have some notification triggers that send our users a mail about specific situations. These triggers then read certain fields of the triggering item in order to use these contents in the text of the mail for a quick overview. Some of these fields are rich text fields, which are basically composed of MKS-HTML code. But now this code can't be understood by Outlook or other mail programs, so that the MKS-HTML tags can be seen in the text of the mail, which makes the whole thing very difficult to read.   

Has anyone found a way to filter out this MKS HTML code or convert it to normal HTML without parsing all the text in the mail trigger script? Thank you....

 

kind regards, Jens

Best answer by VolkerEckardt

Hello Jens,

you could use JavaScript and/or Java to filter XML Tags away (via RegEx).

You may also retrieve the text only via build in API call and appropriate option.

Would suggest to start with ReqEx first.

Does this help?

Volker   

1 reply

17-Peridot
January 11, 2018

Hello Jens,

you could use JavaScript and/or Java to filter XML Tags away (via RegEx).

You may also retrieve the text only via build in API call and appropriate option.

Would suggest to start with ReqEx first.

Does this help?

Volker   

JensN.1-VisitorAuthor
1-Visitor
January 12, 2018

Hi Volker,

 

yes, this could work, but my first intention was to find a way without parsing the whole text. Not very realistic, but you never knows...:)

 

kind regards, Jens