wp7 Display string in webbrowser or otherway?

落爺英雄遲暮 提交于 2019-12-25 01:09:46

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!