properly escape the new text