add escaping and convert line break