using System;
using System.Web;
using System.Text.RegularExpressions;
public static string NoHTML(string Htmlstring)
{
//ɾ³ý½Å±¾
Htmlstring = Regex.Replace(Htmlstring,@"<script[^>]*?>.*?</script>","",RegexOptions.IgnoreCase);
//ɾ³ýHTML
Htmlstring = Regex.Replace(Htmlstring,@"<(.[^>]*)>","",RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring,@"([\r\n])[\s]+","",RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring,@"-->","",RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring,@"<!--.*","",RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring,@"&(quot|#34);","\"",RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring,@"&(amp|#38);","&",RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring,@"&(lt|#60);","<",RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring,@"&(gt|#62);",">",RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring,@"&(nbsp|#160);"," ",RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring,@"&(iexcl|#161);","\xa1",RegexOptions.IgnoreCase);
Htmlstring = Regex.Replace(Htmlstring,@"&(cent|#162);","\xa2",RegexOptions.IgnoreCase);
Htmlstring = &nbs
ÈÃÎÒÃǵijÌÐòдµÃ¸ü¼ÓƽÒ×½üÈË£¬¸ü¼ÓÉú¶¯¶ÔÎÒÃǵıà³ÌÊÇ´óÓÐÒæ´¦µÄ¡£¶ÔÎÒÃǵijÌÐòѧϰҲÄÜÆðµ½Ê°빦±¶µÄ×÷Óᣱà³Ì¹ý³ÌÖÐ×ñÊصIJ»³ÉÎĵıê×¼£¬¶ÔÓÚÎÒÃǺÍËûÈ˵Ľ»Á÷ºÍ×Ô¼ºµÄÔÙѧϰ¶¼ÊÇÓÐÒæÎÞº¦µÄ¡£±Ï¾¹ÓÐʱÎÒÃÇдµÄ³ÌÐò²»ÊÇÖ»¸ø×Ô¼º¿´µÄ£¬Ò²²»ÊÇһʱÐËÆ𣬲»¹ÜÒÔºó¡£ ºÃµÄ±àÂë¿ÉʹԴ´úÂëµÄ¿É¶ÁÐÔÇ¿ÇÒÒâÒåÇå³þ£¬ÓëÆäËûÓïÑÔÔ ......
×î½ü¼¸ÖÜ£¬ÔÚ²©¿Í¡¢TwitterºÍÂÛ̳ÉÏÈç»ðÈçݱµØÕ¹¿ªÁËÒ»³¡ÌÖÂÛ¡£ÌÖÂÛµÄÄÚÈÝÊÇ£º¿ª·¢ÈËÔ±ÊÇ·ñÓ¦¸ÃʹÓûòѧϰASP.NET MVC¡£´Ó“²»ÍƼöѧϰ”µ½“ËùÓÐASP.NET¿ª·¢ÈËÔ±¶¼Ó¦¸Ãѧϰ”£¬¸÷ÖÖ²»Í¬µÄ¹Ûµã²ã³ö²»Çî¡£InfoQ¶ÔÆäÖв¿·ÖÌÖÂÛÄÚÈݽøÐÐÁË×ܽᡣ
Rob Conerey£¨SubSonicÖ®¸¸£¬Ä¿Ç°ÊÇ΢ÈíASP.NET MVCÍÅ¶ÓµÄ ......