Encode edit content as HTML.