#4 fix 'String index out of range' error for pages that contain "</span>"