A few changes. Relying on xpath to extract the text, while still having ruby handle some formatting