I have found only the code to display a HTML file :
app.get('/',function(req,res){
res.sendFile('index.html');
});
While I want just to get the HTML in a variable (to sent it later only if needed). So I look for something like this (with express.js) :
app.get('/',function(req,res){
var example = res.readFile('index.html');
});