Made span_elements_parser() an internal function by renaming it to _span_elements_parser()