fixed bug with text box not escaped properly