more robust extractarticlescontent code