refactor text extractor (no need to use process_markup, use region text
content instead), and ignore in html parser the xml declaration tags