Escape output of text segments.