A more complex example, plus simple (but ugly) escaping of generated text