How to display HTML?
I have a REST call that is returning a string object that is HTML. I want to display it in a Modal Form. Because I am using .Net/C# on the backend to build the string I can't build it as Markdown on the fly so HTML seems to be the only option
I am returning back something like this:
<table>
<thead>
<tr>
<th>
<strong>User Login</strong>
</th>
<th>
<strong>File Name</strong>
</th>
<th>
<strong>Status</strong>
</th>
<th>
<strong>Last Updated</strong>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>DavidWr</td>
<td>Arkansas%20Cadastral%20NSDI%20Business%20Plan.pdf</td>
<td>Completed</td>
<td>2/5/2021 12:00:00 AM</td>
</tr>
<tr>
<td>DavidWr</td>
<td>TestFile_TribalCompacts.gdb.zip</td>
<td>In Process</td>
<td>2/5/2021 12:00:00 AM</td>
</tr>
<tr>
<td>DavidWr</td>
<td>TestFile_TribalCompacts.gdb.zip</td>
<td>Cancelled</td>
<td>2/5/2021 12:00:00 AM</td>
</tr>
</tbody>
</table>
But can't seem to find the right way to insert or update TEXT element to get it to display; it always prepends a " and then a " at the end.
-
@David Wright? Ever found a solution?
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar