问题
string a="hi <p> how </p> are <Br> you?</Br>";
How can avoid this tags <p> </p><Br> </Br>.
In output coming like that : Hi how are you?
If anyone know the answer help me.
回答1:
You can call NavigateToString to render custom HTML in a WebBrowser control:
string html = "<html><body>hi <p> how </p> are <br /> you?</body></html>";
webBrowser.NavigateToString(html);
来源:https://stackoverflow.com/questions/7618979/wp7-display-string-in-webbrowser-or-otherway