0
What is the function of escape in backbone.js?

Open 1 Answers 35 Views Technology
What is the function of escape  in backbone.js?

1 Answer

0

It gets the current value of an attribute from the model but returns the HTML-escaped version of a model’s attribute.  It is helpful in preventing XSS attacks, if you are interpolating data from the model into HTML

by (302k points)
...