Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. string text = Clipboard.GetData(DataFormats.Html).ToString();
  2.  
  3. Version:1.0
  4. StartHTML:0000000105
  5. EndHTML:0000038765
  6. StartFragment:0000038357
  7. EndFragment:0000038725
  8.  
  9. <html xmlns:o="urn:schemas-microsoft-com:office:office"
  10. xmlns:w="urn:schemas-microsoft-com:office:word"
  11. xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
  12. xmlns="http://www.w3.org/TR/REC-html40">
  13.  
  14. <head>
  15. <meta http-equiv=Content-Type content="text/html; charset=utf-8">
  16.  
  17. **{... lots of HTML code with classes etc. etc. etc.. }**
  18.  
  19. <!--StartFragment--><span style='font-size:11.0pt;line-height:107%;
  20. font-family:"Calibri",sans-serif;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:
  21. Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;
  22. mso-bidi-font-family:Arial;mso-bidi-theme-font:minor-bidi;mso-ansi-language:
  23. EN-US;mso-fareast-language:EN-US;mso-bidi-language:HE'>Hello sir</span><!--EndFragment-->
  24. </body>
  25.  
  26. </html>
  27.  
  28. text = text.Replace("Hello sir", "Bye sir");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement