safe text for templates, debug = False