Mustache

Created
Jan 4, 2022 02:36 PM
Tags

Render Double Quote

Using double bracket
var Mustache = require('mustache');

var data = {
  title: `"Ibe"`,
};

var output = Mustache.render("{{title}}", data);

// Result
// "Ibe"
Use triple bracket
var Mustache = require('mustache');

var data = {
  title: `"Ibe"`,
};

var output = Mustache.render("{{{title}}}", data);

// Result
// "Ibe"