modified extract_text() to remove lists and tables