node.js - EJS: <%= versus <%- -
i'm using ejs node.js web server i'm building. see many ejs examples use <%= when outputting html or strings, while other examples (sometimes within same template) use <%-.
i tried reference the ejs docs , getting started guide, both gave no info <%- notation. also, google search attempts yielded nothing useful. thanks!
the version of ejs you're using in node not same version see on google code; in node version, <%= escapes html going buffer, while <%- not. source
Comments
Post a Comment