- cut whatever text is selected in the current window, - replace html characters with their entity representations - paste back into current window.