将richtextbox格式转换为HTML格式

时间:2014-04-28 12:39:37

标签: html asp.net-mvc kendo-ui

任何人都可以给我一个解决方案,将richtextbox格式转换为HTML格式,目前我正在接收

"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\"><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><title>Untitled</title><style type=\"text/css\">\r\n.s_D8D99854 { font-family: 'Verdana';font-style: Normal; } \r\n</style></head><body><p ><span class=\"s_D8D99854\">&nbsp;hello</span></p></body></html>"

来自服务器,我只需要&#34; 你好&#34;删除所有标签,以便我可以进一步存储

使用MVC,Kendo UI,并在控制器中获取格式化代码,感谢任何帮助

这种格式是我得到的

enter image description here

这种格式是我需要的

enter image description here

0 个答案:

没有答案