A good example I can think of is word 2007 --- Or, Ebay when you switch from standard to html;
When you copy and paste into word 2007 you will get the same formatting.
When you do this in Ebay in standard the hit html you get the HTML code.
Ebay actually generates HTML from what you copy and past.
A good example is: http://ckeditor.com/