Parse pasted HTML