generalise element to text