You can just use `.set('text', output)` here and eliminate the need for the "escape" dependency.