Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

<%= vs <%- ejs

Busy Bug answered on February 16, 2023 Popularity 8/10 Helpfulness 5/10

Contents


More Related Answers

  • ejs if else
  • header ejs
  • for loop in ejs
  • ejs comments
  • express ejs
  • ejs comments
  • vscode ejs formatter
  • set view engine to ejs in express
  • component in ejs
  • how to include in ejs
  • install ejs
  • ejs variable
  • express ejs layout use different layout
  • ejs ternary
  • css and ejs
  • ejs if statement
  • install ejs
  • express ejs
  • ejs formatter vscode
  • Using ejs with Express
  • EJS For loops.
  • ejs express layouts
  • how to include ejs file in ejs
  • ejs js
  • js to ejs
  • ejs tutorial
  • ejs layout
  • how to use ejs with client side ejs
  • ejs means?

  • <%= vs <%- ejs

    2

    According to the official https://ejs.co/ docs:


    <% 'Scriptlet' tag, for control-flow, no output

    <%= Outputs the value into the template (HTML escaped)

    <%- Outputs the unescaped value into the template

    Popularity 8/10 Helpfulness 5/10 Language whatever
    Source: Grepper
    Tags: ejs javascript
    Link to this answer
    Share Copy Link
    Contributed on Feb 16 2023
    Busy Bug
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.