Turn arbitrary HTML strings into DOM elements