modify event "text" to get only text and not span