It should be secure by default, no more .innerHTML = user_name and gluing strings together like with SQL in the '90s
replies(1):
The API is secure because it separates static developer controlled strings from dynamic and possibly user-controlled values by JavaScript syntax. Values from text bindings are written to the DOM by setting TextNode.data, which escapes the value first.