Very rudimentary HTML tag and text parsing