jingoro / underscore-template-autoescape

Adds auto-escaping to Underscore.js's template function
2 stars 1 forks source link

License? #1

Open andrewjshults opened 11 years ago

andrewjshults commented 11 years ago

Hi John,

Wanted to check and see what license this is released under. Would love to use it in a project, but want to make sure we can. Thanks!

yourcelf commented 11 years ago

Thanks for pointing that out. I've just added a license to the README file to clarify: unrestrictive 3-clause BSD.

However: since this library was created, underscore has started supporting escaping on its own. I don't recommend that you use this library for any new code, as it will likely serve to confuse people. Underscore's default template interpolation behavior is now:

<%= ... %>: Unescaped raw string <%- ... %>: HTML-escaped string (replaces <, >, ', ", & with entities).

This library inverts that behavior, leading to confusion, so I'd advise against its use.