Fixed code for extraction of header (ignore spans with class 'editsection')