[cspan] move get_text_attr to CSpanIE