dual XHTML HTML build (for contentEditable)