replace the html content of an element with text, a string of html, or an element