Skip to main content
1-Visitor
Jan 10, 2018 6:16 AM UTC
Solved

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

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

17-Peridot
Jan 11, 2018 1:08 PM UTC

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   

3 replies

17-Peridot
Jan 11, 2018 1:08 PM UTC

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   

Translate
JensN.1-VisitorAuthor
1-Visitor
Jan 12, 2018 6:37 AM UTC

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

 

Translate