return text from html element before parsing as string