Character escaping

I'm wondering whether (and how) CronTab escapes special characters like % or ':

with CronTab(user='root') as cron:
    job = cron.new(command="some % weird 'command' here")
    cron.render()

"\n* * * * * some % weird 'command' here\n"

How does this work? Or are users expected to escape the cron commands by hand?

Edited May 15, 2020 by Radim Řehůřek
Assignee Loading
Time tracking Loading