3种方法从Html中取文本
摘要:
public static string NoHTML(string Htmlstring) { //删除脚本 Htmlstring = Regex.Replace(Htmlstring, @"<script[^>]*?>.*?</script>", "", RegexOptions.IgnoreCase); //删除HTML Htmlstring = Regex.Replace(Htmlstring, @"<(.[^>]*)>", "", RegexOptions. 阅读全文
posted @ 2011-03-28 10:29 joyous jeny 阅读(1182) 评论(0) 推荐(1) 编辑