Create HTML Content Activity Does Not Preserve HTML

I have a Create HTML activity which is creating an email body. In this activity, I have added a DataTable data value and inserted it into the editor.

When the HTML is rendered, html saved in the datatable is not preserved. HTML tags used for styling are converted to raw text rather than being interpreted as HTML.

Is there an alternative formatting I should be using here or will I need to roll my own solution? I suspect this may have been done on purpose to prevent some sort of injection attack, but I control both the datatable and the resulting HTML so this is not a concern to me.

ensure that you have worked on source code view and also have a look here:

Unfortunately the HTML view is not really helpful.

<H2>Verified</H2>
<P align=center><SPAN class=mapping contentEditable=false>{{VerifiedTable}}</SPAN></P>

At best with this I could style outside of the table or I could style html that I know will be there, such as targeting table or td, but this doesn’t really help me.

The issue seems to be related to the code in this activity which renders HTML for the datatable, which it uses as a replacement for {{VerifiedTable}} in the html above. It would need to interpret <strong>Overall</strong> as HTML rather than just plain text, though as mentioned prior I suspect it’s going one step further and sanitizing the text to remove HTML.

I’ll see what I can do to roll my own datatable to html code.

@Foxtrek_64
as we mentioned:

  • css styling - eg for a td
  • post editing the generated html code by code / procedures

we addressed the case you mentioned

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.