core :: Text :: escape_to_js
self
# Escape the content of `self` to pass to JavaScript code fun escape_to_js: Text do return replace('\n', "\\n")