Closed hopfrogpoe closed 1 year ago
It appears to be the default behaviour of the Blazor rendering engine. I found this StackOverflow article which also suggests a workaround using MarkupString
. Suggest you try this:
@((MarkupString)"<!--[if mso]-->")
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="50%" valign="top">
@((MarkupString)"<!--[endif]-->")
I'm adding a test for this to check this behaviour going forward.
All seems to work fine with the MarkupString
workaround.
Thank you for that! Not sure how I didn't find that in my searches but I appreciate it.
I'm trying to render a .razor file (email template) that contains conditionals like
but they don't survive through the render. Is this something that can be fixed or is there a flag to set that already does this? Any help would be great.