Add a clone() method to HtmlWriter