I pass on the text to the page:

router.get('/', function (req, res, next) { res.render("main/index", { title: 'Drak'thul' }); 

But it does this:

 Drak'thul 

An EJS template is:

 <%= title %> 

How to fix?

2 answers 2

 router.get('/', function (req, res, next) { res.render("main/index", { title: "Drak'thul" }); 

    You need to print the variable in the ejs template not so:

     <%= title %> // Drak&#39;thul 

    And so:

     <%- title %> // Drak'thul