The jQuery outerHTML plugin let's you set or retrieve HTML of an element including the tag itself.

A very simple demonstration would be turning an emphasis tag into a emphasis tag.