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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -