摘要:
publicstaticstring DelHtml(thisstring Htmlstring) { //删除脚本 Htmlstring = Regex.Replace(Htmlstring, @"<script(\s[^>]*?)?>[\s\S]*?</script>", "", RegexOptions.IgnoreCase); //删除样式 Htmlstring = Regex.Replace(Htmlstring, @"<style>[\s\S]*?</style>", 阅读全文