The Backbone.JS Escape() model is used to get the html-escaped version of a model’s attributes.
Syntax:
Model.Escape(attribute)
Parameters:
attribute: This parameter is used to define properties of a model.
Example:
Example
Output:
The FIRST Message: HELLO
Explanation:
The Backbone.JS Escape() model gets the html-escaped version of the attributes in the model.