摘要: publicstaticstring DelHtml(thisstring Htmlstring) { //删除脚本 Htmlstring = Regex.Replace(Htmlstring, @"<script(\s[^>]*?)?>[\s\S]*?</script>", "", RegexOptions.IgnoreCase); //删除样式 Htmlstring = Regex.Replace(Htmlstring, @"<style>[\s\S]*?</style>", 阅读全文
posted @ 2012-08-10 15:56 宁静.致远 阅读(189) 评论(0) 推荐(0) 编辑