Remove Table from HTML or XAML C# -
i have used html xaml (flowdocument) conversion script, problem don't want tables displayed.
i prefer using html code example:
<table> <tr> <td></td> </tr> <tr> <td></td> <td></td> </tr> </table>
ok examples sake, formatting of table, is. replace tags maybe <p>
or <br />
how go doing this?
in very simplistic terms:
string html = "..."; html = html.replace("<table>","<p>"); html = html.replace("<td>",""); html = html.replace("</td>"," "); html = html.replace("<tr>",""); html = html.replace("</tr>","<br/>"); html = html.replace("</table>","</p>");
you'll space after closed in case have more 1 . can account through more thorough logic.
Comments
Post a Comment