But from your example, it seems to me that you don't need the html at all.To get the texr inside the nested span, first navigate to the span, and then extract the text.This (or something similar) should work: