fork download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace WindowsFormsApplication1
  11. {
  12. public partial class Form1 : Form
  13. {
  14. public Form1()
  15. {
  16. InitializeComponent();
  17. }
  18.  
  19. private void button1_Click(object sender, EventArgs e)
  20. {
  21. webBrowser1.DocumentText =
  22. @"<!-- saved from url=(0014)about:internet -->
  23. <html>
  24. <head>
  25. </head>
  26. <body>
  27. <div class=""abc"">hoge</div>
  28. <div class=""efg"">goge</div>
  29. </body></html>";
  30. }
  31.  
  32.  
  33. private void button2_Click(object sender, EventArgs e)
  34. {
  35. webBrowser1.Document.Body.Children[0].InnerText = "";
  36.  
  37. }
  38. }
  39. }
  40.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty