Converts an HTML string into a virtual DOM