added setEscaped method